Solved

Display Azure Blob in ASP.NET GridView

Posted on 2013-06-22
3
941 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

911 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

16 Experts available now in Live!

Get 1:1 Help Now