Azure 存储 - 在 <img> 标记中使用私有(private)容器中的 Blob

标签 azure azure-storage azure-blob-storage

我已创建 Azure 容器并将其设置为专用。该权限必须设置为“私有(private)”,因为只有登录用户才能查看该内容。但是,我打算在标签中使用 blob。当容器设置为 Private 时,这是不可能的。有没有解决的办法?或者有其他人遇到同样的问题吗?

我从 CodePlex/Code Project 下载的所有代码示例(PhluffyPhotos、MyPictures)始终将容器设置为 Public(Container/Blob)。

谢谢!

最佳答案

考虑使用共享访问签名。通过这些签名,您可以让用户临时访问私有(private)容器中的 Blob。

Eugenio Pace 的文章准确地解释了您想要执行的操作:Windows Azure Guidance – Using Shared Key Signatures for images in a-Expense

关于Azure 存储 - 在 <img> 标记中使用私有(private)容器中的 Blob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14167453/

相关文章:

azure - 使用 CloudTable 绑定(bind)到 v2 Azure Functions 中的表存储

azure - 如何将 Web 代理地址传递给 Microsoft.WindowsAzure.Storage.OperationContext.UserHeaders?

python - 如何为 azure blob 创建/设置新元数据并使用 Python API 获取元数据?

.net - 微软 Azure SSL 配置

Azure 事件中心 - 如何通过 https 从传感器接收数据?

azure : How to write path to get a file from a time series partitioned folder using the Azure logic apps

azure - 限制 Azure 存储容器的初始大小

azure - 使用 Azure AD B2C 进行身份验证时遇到的问题

php - 如何在Azure网站中创建html/php网页子目录?

python - 如何将 "Microsoft.Azure.WebJobs.Extensions.Storage"降级到版本 5.0.1(Python Azure Blob 触发器)