Solved

Display Azure Blob in ASP.NET GridView

Posted on 2013-06-22
3
933 Views
Last Modified: 2014-11-12
I have an existing Microsoft ASP.NET web forms application that I am migrating to Azure web sites.  The application displays images in a gridview.  In the current application, the file path for the gridview is stored in a SQL Server database and the images are stored on the same network as the web server.

The new application will utilize Azure web sites, SQL Azure and Azure storage.  I already have the Azure web site running and connected to a SQL Azure database.  The application can successfully upload blobs to my Azure storage container, but I am not sure how to bind them to the gridview.

The container must be private.  The gridview uses a stored procedure to get the blob names to be displayed.

I have looked all over for an example on how to do this and I am beginning to think my approach is wrong.  Can someone point me to a good example or suggest a better approach.

Thanks.
0
Comment
Question by:gerrystrat
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
lenordiste earned 500 total points
ID: 39269172
Why do you need the container to be private? Sounds like this is why it is not working. If you do need the container to remain private, but require some users (logged in?) to access blob ressources than look at this link which provides a great explanation on how to work around the issue inherent with blob storages:
http://blogs.msdn.com/b/eugeniop/archive/2010/04/13/windows-azure-guidance-using-shared-key-signatures-for-images-in-a-expense.aspx
0
 
LVL 11

Expert Comment

by:lenordiste
ID: 39269173
to the above information, i would add a 4th option: you may want to consider maintaining two separate containers, one for public contents (images for example) and one for private contents.
0
 

Author Comment

by:gerrystrat
ID: 39269329
Thanks, lenordiste.  My customers are regulated electric utilities and all of their data, regardless of how sensitive it is, must be private.

I'm going to pursue the shared key access approach you suggested.  Thanks, again.
0

Featured Post

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now