user2981411
user2981411

Reputation: 962

ImageResizer AzureReader2 404 Error

We are trying to test the ImageResizer with our Azure Blob Storage. We have included the latest version of everything (including the AzureReader2) but we keep getting the 404 error.

Our config setting is as follows:

    <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>

Is there anything we can do to make this work. Many thanks

Upvotes: 0

Views: 127

Answers (1)

Lilith River
Lilith River

Reputation: 16468

Thank you for sharing the URL you are getting the 404 with in the comments:

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

This URL is served by bbzstorage.blob.core.windows.net. bbzstorage.blob.core.windows.net is not running ImageResizer, so it cannot resize your images.

For ImageResizer to resize an image for you, you must communicate with it somehow. It does not perform a magical man-in-the-middle attack on your network traffic in order to inject its functionality.

If you have an ImageResizer server at localhost, you might need to use a URL like

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

This diagram tries to explain how data flows. In your case, you don't have a CDN, so just pretend there's a straight line from the rightmost computer to the ImageResizer server.

Upvotes: 0

Related Questions