Search code examples
wcfrestuploadazure-storagechunks

Chunk upload to Windows Azure Blob by using WCF REST


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