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 should i use?
A:
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);
David Makogon
2010-09-19 20:39:48