Azure Storage - Use Blob from Private Container in <img> tag

stack247 picture stack247 · Jan 5, 2013 · Viewed 7.7k times · Source

I have Azure Container created and set to Private. The permission must be set to Private because the content is only viewable to logged in user. However, I am intended to use the blob in tag. This is not possible when the Container is set to Private. Is there a way around this? Or have anybody else encounter the same problem?

All the code sample I have downloaded (PhluffyPhotos, MyPictures) from CodePlex / Code Project always set the container to Public (Container / Blob).

Thanks!

Answer

Sandrino Di Mattia picture Sandrino Di Mattia · Jan 5, 2013

Consider using Shared Access Signatures. With these signatures, you can give your user temporary access to a Blob in a private container.

Eugenio Pace's article explains exactly what you're trying to do: Windows Azure Guidance – Using Shared Key Signatures for images in a-Expense