Chunk upload to Windows Azure Blob by using WCF REST
-
14-11-2019 - |
Question
I'm using Windows Azure Blob Storage and WCF REST Services together to upload large files with chunk.
I can upload one part files easily, but I have to find a method to merge this chunks in an Azure Blob. What is the best practise to do this?
This is my interface:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate="Upload?name={name}&chunk={chunk}&chunks={chunks}")]
int Upload(string name, string chunk, string chunks, Stream fileContents);
Solution
BlockBlob solved my problem. I can upload huge files as 256kb chunks easily. Here is the example which helped me: http://code.msdn.microsoft.com/windowsazure/Silverlight-Azure-Blob-3b773e26
OTHER TIPS
I can't speak of how to interact with WCF, but if you need to improve your upload performance, you should look at using the block access pattern and running multiple threads.
Erick
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow