ImageResizer AzureReader2 404错误

时间:2016-04-03 21:13:15

标签: imageresizer

我们正在尝试使用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>

我们可以做些什么来完成这项工作。 非常感谢

1 个答案:

答案 0 :(得分:0)

感谢您在评论中分享您获得404的网址:

https://bbzstorage.blob.core.windows.net/u0k/1/logo.jpg?width=100&height=60&mode=max

此网址由bbzstorage.blob.core.windows.net提供。 bbzstorage.blob.core.windows.net未运行ImageResizer,因此无法调整图像大小。

要让ImageResizer为您调整图像大小,您必须以某种方式与其进行通信。它不会对您的网络流量执行神奇的“中间人”攻击,以便注入其功能。

如果您在localhost上有ImageResizer服务器,则可能需要使用类似

的URL

https://localhost/azure/bbzstorage/u0k/1/logo.jpg?width=100&height=60&mode=max

此图试图解释数据如何流动。在你的情况下,你没有CDN,所以只是假装从最右边的计算机到ImageResizer服务器的直线。

相关问题