Solved

Display Azure Blob in ASP.NET GridView

Posted on 2013-06-22
3
973 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Do you know what to look for when considering cloud computing? Should you hire someone or try to do it yourself? I'll be covering these questions and looking at the best options for you and your business.
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…
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…

707 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