As stated in the title. How to display all the image from Azure Blob Storage in table using ASP.NET MVC3?
You may take a look at the documentation which explains in great details how to achieve different operations with Azure Blob Storage. More specifically checkout the How to List the Blobs in a Container and How to Download Blobs sections.
a quick and dirty method can be
var accnt = CloudStorageAccount.parse("");//ur accnt string
var client = accnt.CreateCloudBlobClient();
var blobs = client.GetContainerRefrence(""/*container name*/).ListBlobs();
var urls = new List<string>();
foreach(var blob in blobs)
{
string url = "base host"+blob.uri.AbsoluteUri;
urls.Add(url);
}
//now display it the way you want
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.