Update: Please see my updated azure big files post.
Azure is all about big files, solving big computational problems and being able to expand quickly without needing your own infrastructure.
Why oh why then is uploading largish files (anywhere from 4MB in size) to blob storage such a pain? This is my third go and I'm still not convinced it's going to work. Here's what I've done so far to enable largish files to be uploaded:
- Added a 20 minute execution timeout and 100MB file size maximum in web.config - <httpRuntime executionTimeout="1200" maxRequestLength="2000000" />
- Then on the CloudBlobClient I set the Timeout = new TimeSpan(2, 0, 0); (2 hours) and the ParallelOperationThreadCount = 2.
- It looks like you also have to add another web.config change as below:<system.webServer><!-- This is a setting from this forum http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/f4575746-a695-40ff-9e49-ffe4c99b28c7/ --><security><requestFiltering><!-- 100MB --><requestLimits maxAllowedContentLength="2000000000"></requestLimits>
...
I've seen examples where people manually chunk the upload into a number of streams of 4MB size which I'm really hoping I don't have to do. Fingers crossed.
Thanks wot u do - http://wotudo.net/blogs/wotudo/archive/2010/02/16/copying-files-to-windows-azure-blob-storage.aspx.
Update: Added point 3. In the process of seeing if it works now.
Update: man this whole thing seems a little flaky. The above seems to work now but let's see..