Azure Pageblob Upload A New File: X-ms-blob-content-length Error
I am trying to write a simple python code to upload a file to Azure PageBlob. I am not sure what should I specify for the x-ms-blob-content-length as I keep getting error. The docu
Solution 1:
Essentially the issue is with the following line of code:
size = size + boundary
If you divide this number by 512, you will notice that the number is not exactly divisible by 512.
In order to set the content length of the page blob to be a multiple of 512, you will need to use the following logic:
size = size + 512 - boundary
Please give that a try. It should work.
Post a Comment for "Azure Pageblob Upload A New File: X-ms-blob-content-length Error"