![](/img/trans.png)
[英]How to I display an image from my Azure Blob Storage Account in my ASP.NET Core Application?
[英]How to display all the image from Azure Blob Storage in table using ASP.NET MVC3?
正如標題中所述。 如何使用ASP.NET MVC3在表中顯示Azure Blob存儲的所有圖像?
您可以查看文檔 ,其中詳細說明了如何使用Azure Blob存儲實現不同的操作。 更具體地說,請查看如何列出容器中的Blob以及如何下載Blob部分。
一個快速而骯臟的方法可以
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.