Upload large file to azure blob

AzureDev 6 Reputation points
2021-09-02T10:40:04.933+00:00

Hello, I would like to upload a 100GB file using C#. I get the error message
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidBlobOrBlock</Code><Message>The specified blob or block content is invalid.
Upload also fails with Azure Explorer.
What am I doing wrong?
Thanks!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,449 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,806 Reputation points Microsoft Employee
    2021-09-02T12:00:37.89+00:00

    @AzureDev Can you share the code and screen shot of the error message?

    Based on the error message, refer to this article: Troubleshooting InvalidBlock 'The specified block list is invalid’ based errors:

    If you’re uploading blobs by splitting blobs into blocks and you get the above mentioned error, ensure that your block ids of your blocks are of same length. If the block ids of your blocks are of different length, you’ll get this error.

    Uploading Large Files to Azure Blob Storage in C#

    Refer to this article for more information Windows Azure Blob Storage – Dealing With “The specified blob or block content is invalid” Error
    Upload Large Files in Azure Blob

    This tutorial shows how to uploads large amount of random data to an Azure storage account.

    The reason was actually because half way through the download the blob was being overwritten by the next file. Basically create a new blob each upload so this doesn't happen.

    Please let us know if you have any further queries. I’m happy to assist you further.
    Looking forward for your reply!

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.