Solved

Display Azure Blob in ASP.NET GridView

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

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…
Steve Terp was featured in a video created by CRN about how "Channel Is Crucial To Market Disruption". Click on View source to see the video and article
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…

813 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

18 Experts available now in Live!

Get 1:1 Help Now