locked
Retrieve images from Window Azure to Window Phone 7 RRS feed

  • Question

  • 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

    Thursday, February 9, 2012 3:42 AM

Answers

  • 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

    • Marked as answer by Arwind - MSFT Wednesday, February 15, 2012 10:56 AM
    Friday, February 10, 2012 7:02 PM

All replies

  • 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

    Thursday, February 9, 2012 4:49 AM
  • 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


    Thursday, February 9, 2012 5:01 AM
  • 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.

    Thursday, February 9, 2012 3:39 PM
  • 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

    • Marked as answer by Arwind - MSFT Wednesday, February 15, 2012 10:56 AM
    Friday, February 10, 2012 7:02 PM