locked
Track file download/upload progress RRS feed

  • Question

  • Hello,

    I would like to know the progression of file upload and download to the azure storage. Unfortunately, CloudBlockBlob does not have BeginUploadFromstream and BeginDownloadFromStream functions.

    Is there any tips I can use to track the progression?

    Thanks.

    Tuesday, June 2, 2015 4:37 PM

Answers

  • UploadFromStreamAsync does not provide progress callback: https://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.storage.blob.cloudblockblob.uploadfromstreamasync.aspx

    I found an other way to implement this part in my code. I'm using the IBackgroundTransferBase interface and those two implementations:

    https://msdn.microsoft.com/library/windows/apps/windows.networking.backgroundtransfer.backgrounduploader.aspx

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx

    I change a little bit the request header, and after that I'm able to track the download/upload progression.

    Thank you for all your answers!

    • Marked as answer by BatRocchia Friday, June 5, 2015 8:32 AM
    Friday, June 5, 2015 8:32 AM

All replies

  • Hi,

    You could refer the following link:
    http://blogs.msdn.com/b/kwill/archive/2013/03/06/asynchronous-parallel-block-blob-transfers-with-progress-change-notification-2-0.aspx

    It provides you details on Blob Transfers with Progress Change Notification.
    Hope this helps.

    Regards,
    Malar.

    Wednesday, June 3, 2015 7:13 AM
  • This sample use BeginUploadFromStream and BeginDownloadFromStream....

    I can't use those function, they don't exist in the Windows Store App SDK.

    Wednesday, June 3, 2015 7:56 AM
  • Hi,

    Can you use UploadFromStreamAsync and DownloadFromStreamAsync? If so, I think you can just make some changes to the sample mentioned by Nagamalar above.

    Best Regards,

    Zhaoxing Lu

    Friday, June 5, 2015 2:10 AM
  • UploadFromStreamAsync does not provide progress callback: https://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.storage.blob.cloudblockblob.uploadfromstreamasync.aspx

    I found an other way to implement this part in my code. I'm using the IBackgroundTransferBase interface and those two implementations:

    https://msdn.microsoft.com/library/windows/apps/windows.networking.backgroundtransfer.backgrounduploader.aspx

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx

    I change a little bit the request header, and after that I'm able to track the download/upload progression.

    Thank you for all your answers!

    • Marked as answer by BatRocchia Friday, June 5, 2015 8:32 AM
    Friday, June 5, 2015 8:32 AM