我已创建 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/