我们正在尝试使用Azure Blob存储来测试ImageResizer。我们已经包含了所有内容的最新版本(包括AzureReader2),但我们仍然收到404错误。
我们的配置设置如下:
<resizer>
<plugins>
<add name="AzureReader2" prefix="~/" connectionString="DefaultEndpointsProtocol=https;AccountName=ouraccount;AccountKey=ourAccountKey;BlobEndpoint=https://ouraccount.blob.core.windows.net/;TableEndpoint=https://ouraccount.table.core.windows.net/;QueueEndpoint=https://ouraccount.queue.core.windows.net/;FileEndpoint=https://ouraccount.file.core.windows.net/" />
</plugins>
</resizer>我们能做些什么来让这件事起作用。非常感谢
发布于 2016-04-05 07:21:13
感谢您在评论中分享获得404的URL:
https://bbzstorage.blob.core.windows.net/u0k/1/logo.jpg?width=100&height=60&mode=max
此URL由bbzstorage.blob.core.windows.net提供。bbzstorage.blob.core.windows.net未运行ImageResizer,因此无法调整图像大小。
要让ImageResizer为您调整图像大小,您必须以某种方式与其通信。它不会为了注入其功能而对您的网络流量执行神奇的中间人攻击。
如果您在本地主机上有一个ImageResizer服务器,您可能需要使用一个类似于
https://localhost/azure/bbzstorage/u0k/1/logo.jpg?width=100&height=60&mode=max
这个图表试图解释数据是如何流动的。在您的例子中,您没有CDN,所以假设从最右边的计算机到ImageResizer服务器有一条直线。

https://stackoverflow.com/questions/36391268
复制相似问题