Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 234
stack247 Avatar asked Jan 05 '13 01:01

stack247


1 Answers

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

like image 100
Sandrino Di Mattia Avatar answered Oct 11 '22 07:10

Sandrino Di Mattia