none
[Python][Azure Storage] How to upload large files to blob storage RRS feed

  • Question

  • I know there are several articles and github issues around this topic, but it seems that they are all out-of-date and use deprecated methods in the python sdk.

    How can i upload files larger than 64MB to blob storage using python?


    Tuesday, June 21, 2016 12:45 PM

Answers

  • Hello,

    Thank you for posting your question on Microsoft TechNet.

    Here you find the information about How to use Azure Blob storage from Python :

    https://azure.microsoft.com/en-us/documentation/articles/storage-python-how-to-use-blob-storage/

    To create a block blob and upload data, use the create_blob_from_path, create_blob_from_stream, create_blob_from_bytes or create_blob_from_text methods. They are high-level methods that perform the necessary chunking when the size of the data exceeds 64 MB.

    The maximum upload size for a block blob is 64 MB. If your blob is larger than 64 MB, you must upload it as a set of blocks. For more information, see the Put Block (REST API) and Put Block List (REST API) operations. It's not necessary to call Put Blob if you upload the blob as a set of blocks.

    https://msdn.microsoft.com/library/azure/dd179451.aspx

    or maybe Microsoft Azure Storage Explorer can help you :

    http://storageexplorer.com/

    Hope this information is helpful for you.

    Best Regards,

    @Jamesvandenberg
    --------------------------------------
    (Ps. If this information is helpful, please mark your question as answered for the community.)

    Tuesday, June 21, 2016 2:54 PM