简体   繁体   English

如何使用ASP.NET MVC3在表中显示Azure Blob存储的所有图像?

[英]How to display all the image from Azure Blob Storage in table using ASP.NET MVC3?

As stated in the title. 正如标题中所述。 How to display all the image from Azure Blob Storage in table using ASP.NET MVC3? 如何使用ASP.NET MVC3在表中显示Azure Blob存储的所有图像?

You may take a look at the documentation which explains in great details how to achieve different operations with Azure Blob Storage. 您可以查看文档 ,其中详细说明了如何使用Azure Blob存储实现不同的操作。 More specifically checkout the How to List the Blobs in a Container and How to Download Blobs sections. 更具体地说,请查看如何列出容器中的Blob以及如何下载Blob部分。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 ASP.NET Core 应用程序中显示来自 Azure Blob 存储帐户的图像? - How to I display an image from my Azure Blob Storage Account in my ASP.NET Core Application? 如何在ASP.NET MVC3中显示图像 - How to display image in asp.net mvc3 如何将图像从 Asp.net Core IFormFile 上传到 Azure Blob 存储? - How to Upload Image From Asp.net Core IFormFile to Azure Blob Storage? 如何使用带有 ASP.NET MVC 的局部视图显示数据库表中的所有项目? - How do I display all items from a table in a database using a partial view with ASP.NET MVC? 从 ASP.Net MVC 将 3+ GB 文件上传到 Azure Blob 存储的最佳方法是什么? - What is the best way to upload 3+ GB files to Azure Blob Storage from ASP.Net MVC? asp.net mvc3如何将字节显示为字符串? ASP.NET MVC3 - Asp.net mvc3 How to display byte as string? Asp.net mvc3 使用ASP.Net MVC3显示包含在byte []中的图像 - Display an image contained in a byte[] with ASP.Net MVC3 如何从 ASP.NET 核心应用程序将图像上传到 Azure blob 存储中的特定目录? - How do I upload an image to a specific directory in my Azure blob storage from my ASP.NET Core application? 使用ASP.NET Web API将图像添加到Azure blob存储失败 - Adding an image to Azure blob storage using ASP.NET Web API fails 使用ASP.NET在Windows Azure blob存储上设置CORS - Set CORS on Windows Azure blob storage using ASP.NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM