Try our conversational search powered by Generative AI!

Get blob's "friendly" URL



Im trying to save images as Blobs and that works fine, also recieving them by ID works fine.
I would now like to get a direct URL to the image in the Blob, how do i do that? 

is there a way to get get some kind of friendly URL for my blobs?


Jan 14, 2014 14:56

This should work:

            var urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
            string url = urlResolver.GetUrl(contentRef);


Jan 14, 2014 15:04

the result i get is like: /c51753f6f962400a81fda2f7dde8f830/12ab200bb36e46ff8896731473bf7d96.png

When creating blobs, do i have to create contentRepository  or is it ok to simply just store the ID for the specific blob?

Jan 14, 2014 16:20

ok i had to do that.. 

Followed solution on this post:

Jan 14, 2014 17:01
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.