volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Get blob's "friendly" URL

Hi, 

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?

//P


#80056
Jan 14, 2014 14:56
Vote:

This should work:

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

 

#80057
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?

#80066
Jan 14, 2014 16:20
Vote:

ok i had to do that.. 

Followed solution on this post:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=79009

#80077
Jan 14, 2014 17:01
error 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.