Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered Retrieve images from Window Azure to Window Phone 7

  • 2012年2月9日 3:42
     
     

    Hello all,

    I managed to upload an image from Camera Roll to my Window Azure Blob Storage, now I want to retrieve from the storage to Window Phone 7. Have search all over the www and there isn't any useful solution. Wondering any of you can help here? Rather urgent.


    Any help would be appreciated ^^ Regards, forsakenedsj

すべての返信

  • 2012年2月9日 4:49
     
     

    Each blob in blob storage is accessible via a URL in <a href="http://.blob.core.windows.net/<blobcontainername>/blobname">http://<accountname>.blob.core.windows.net/<blobcontainername>/blobname. That is one way of accessing the images. This would fail if the blob container in which the images are uploaded has a "Private" ACL. In that case your options would be to either make use of Shared Access Signature or make use of API.

    Hope this helps.

    Thanks

    Gaurav Mantri

    Cerebrata Software

    http://www.cerebrata.com

  • 2012年2月9日 5:01
     
     

    Hi thanks for the valuable feedback.

    Do I need to add in to my uploading code or create in a new C# file? Because I've no clue for this. Any help?

    I followed this: http://buildmobile.com/a-practical-guide-to-photo-sharing-apps-using-windows-phone-and-azure/#fbid=r3j8cw2uWqf


    Any help would be appreciated ^^ Regards, forsakenedsj


  • 2012年2月9日 15:39
     
     

    Hi,

    You can create a service for handling your images for WP application, suppose you create a REST service in local and expose it by ServiceBus, and you WP just need to invoke this service for get or upload images (By different url and method) as a client.

    Hope it helps.

  • 2012年2月10日 19:02
     
     回答済み

    Hi - thanks for the question!

    For Gaurav's suggestion, if you wanted to make the container public, so that you could simply download the blob via its url, you would want to use the REST command "Set Container ACL", which you can read about here: http://msdn.microsoft.com/en-us/library/dd179391.aspx.  Note that you only need to do this once per container, and that once it's done, all blobs in that container will be public.

    Hope that helps!


    -Jeff