azure - 如何在网络上显示 blob 中的图像

标签 azure azure-blob-storage

我能够在 azure blob 存储上成功上传图像,但是当我将图像的绝对 URI 粘贴到 Chrome 中时,它会显示 xml 错误消息:
The specified resource does not exist .
我尝试将内容类型从 applicaiton/octet-stream 更改为至image/jpeg但仍然是同样的错误。我不知道如何使用 URI 在 Web 中显示图像。我是否需要对 URI 进行任何更改,或者是否需要添加任何类型的权限。

我查询时得到的示例 URI blob.Uri.AbsoluteURIhttps://<account name>.blob.windows.net/<container>/photo.JPG

谢谢

最佳答案

我认为你的想法是正确的。您能否确保容器上的访问是公共(public)的(或公共(public) Blob)?您应该能够通过导航到您正在使用的存储帐户和容器来从 Azure 管理页面访问该设置。

关于azure - 如何在网络上显示 blob 中的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24167569/

相关文章:

python - Http响应错误: This request is not authorized to perform this operation using this permission in Python Azure Function

node.js - 无法使用 Visual Studio 2013 将 Node js 站点发布到 azure

Azure 虚拟网关 : VirtualNetworkGatewayBgpPeeringAddressCannotBeModified

azure - 如何阻止 azure aks get-credentials --admin 并仅在 azure 上允许 azure aks get-credentials?

azure - Azure 存储函数 object.DeleteIfExists() 在调用时是否检查是否存在?

azure - 在 Windows Azure 中,CloudBlockBlob.PutBlock 方法使用 TCP 还是 UDP 作为传输协议(protocol)?

Azure 事件网格高级筛选为 Not Null 运算符

azure - Kubernetes 入口路由 - 星号 (*) 在入口路径规则中不起作用

c# - 使用 blob StartCopyAsync 时如何获取 azure blob 的更新复制状态

azure - 如何保护 Azure Blob 存储 URL 不被任何使用开发人员工具的人检索