1
Vote

Upload large files to Azure Blob Storage fails

description

Uploading large files to Azure Blob service returns this error:
<?xml version="1.0" encoding="utf-8"?><Error><Code>RequestBodyTooLarge</Code><Message>The request body is too large and exceeds the maximum permissible limit.</Message><MaxLimit>67108864</MaxLimit></Error>

comments

c0d3 wrote Aug 23, 2010 at 7:04 AM

The request body is to large - error may be caused by trying to upload the same file many times. When files are uploaded it is uploaded in eg. 64KB blocks, and Azure may have a MaxLimit for how many blocks can be uploaded, when this limit is reached, the error is thrown. Blocks are still in the blobstorage but uncomittet, I fixed this in one of my projects by deleting a file blob if the stream prosition is set to 0.
container.DeleteBlob(blobProperties.Name) and then uploaded the same file with a block size of 1MB. Hope this helps.

wrote Feb 13, 2013 at 10:58 PM