I have a some thumbnail in azure blob storage and thumbnail-URL in azure table. I want to retrieve thumbnail URL. After that, when I click on this URL it will show the full image from azure blob. Anybody help me. What is the query that I should use?
The URL-click part should be as straightforward as any other embedded img link, as long as your blob is publicly accessible.
I don't know what your entity looks like, but let's just pretend you have a table called ImageDetails, and you have an entity called ImageDetail with a property called ThumbnailURL. You could query the table with something like this (you'd probably want to subclass TableServiceContext - this is a simple example):
var imageDetailQuery = CloudStorageAccount.DevelopmentStorageAccount
.CreateCloudTableClient()
.GetDataServiceContext()
.CreateQuery<ImageDetail>("ImageDetails");
var imageDetail = (from d in imageDetailQuery where ... select d).FirstOrDefault();
At this point, assuming you have an ImageDetail object, you can just access:
imageDetail.ThumbnailURL
And build up your tag, either inline or in code:
var imgTag = String.Format("<img src=\"{0}\"...>", imageDetail.ThumbnailURL);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With