Answered Access File Properties From Blob Storage

  • Friday, December 16, 2011 5:14 PM
     
     

    I am working on a Silverlight project that stores file downloads on a secure Blob.  I have a shared access signature that I'm passing to Silverlight so that the files can be accessed.

    Since these are large files, I want to pull the file size info from blob storage and display that on th download link.  Is there a way to do that from within Silverlight?

    Thanks

All Replies

  • Friday, December 16, 2011 11:10 PM
     
     Answered

    Hi there - thanks for your question.

    Yes, this is possible.  Do an HTTP HEAD request and check the x-ms-blob-content-length header that is returned.  It will include the size of the blob in bytes.  As a HEAD request, it will also not return all the contents.


    -Jeff
  • Friday, June 15, 2012 8:50 AM
     
     

    Hi Jeff,

    Wen i followed the above procedure i get a forbidden error 403 error..

    how to get the blob content length when the uri is in (blob ur + shared access signature) format


    • Edited by priyanka_gari Friday, June 15, 2012 8:51 AM clarity
    •