AI OnAI Off
Url.ContentUrl([ContentReferenceToBlob])
That demands that you know the contentreference to the image
Hi,
When you say blob folder, do you mean the actual folder on disk or in blob storage in Azure? Or are you referring to the folder created inside the CMS? If the latter: Get the reference to the folder, e.g. var folder = new ContentReference(theIdOfTheFolder). Then get all children to the folder with var images = IContentLoader.GetChildren<MediaData>(folder). Lastly loop through all image and find the one with the name you're looking for var image = image.FirstOrDefault(x => x.Name.Equals("theNameYoureLookingFor")) .
I would probably ask why you want to get hold of the image directly? Is there something you cannot do with the Episerver API?
Hi,
Is it possible to get image directly from blob folder with the image name?
I haven't created any CMS property for the image.
Thanks,
Manjeera T