CloudBlockBlob Progress?

All replies

  • Hi,

    Thanks for posting here.

    One possibility would be manually split the file into chunks and upload those chunks asynchronously using PutBlockAsync method. Once all chunks are uploaded, you can then call PutBlockListAsync method to commit the blob.

    You could try the below steps


    starts new task.

    Task.Run(() => { blob.UploadFromStreamAsync(image); });

    just starts task which starts task. So that this code: 

    Task task = Task.Run(() => { blob.UploadFromStreamAsync(image); });

    will just wait until upload-task gets fired(which happens kinda immediately) but not for the completion of upload-task.

    To fix the situation you'll have to write: 


    Hope it works.

    Girish Prajwal

    Saturday, November 28, 2015 6:13 PM
  • Thanks for the response, but to me this fits into "reinventing the wheel".  It just doesn't seem like I should have to write code to break up my file, etc.  If such code IS required, I would expect there would be a community of people interested and it would then become a NuGet package or something.  Yes, that may be presumptuous, but it's hard for me to imagine I'm the first or only person facing what to me would seem like a very common problem.



    Saturday, November 28, 2015 7:17 PM