What is the maximum file size which i can upload t

2019-06-16 11:22发布

问题:

Please can i know what the maximum file size to upload to the azure storage blob using uploadfile api.

回答1:

Block Blobs originally had a maximum size of 200GB (with 4MB block size), and now may be up to 4.77TB (with new 100MB block size). Maximum number of blocks per blob: 50,000.

Take a look at operations on Block Blobs for more information about the REST API calls (including Put Block and Put Block List)



回答2:

Update: as of December 2016 the maximum size of a Block Blob has increased to roughly 4.75TB (50,000 x 100MB blocks).

Source: https://azure.microsoft.com/en-gb/blog/general-availability-larger-block-blobs-in-azure-storage/



回答3:

It basically depends on what type of blob you are using. Understanding Block Blobs and Page Blobs explains everything in detail.

If you are using block blobs (UploadFile API):

If you are writing a block blob that is no more than 64 MB in size, you can upload it in its entirety with a single write operation. (Storage clients default to 32 MB, settable using the SingleBlobUploadThresholdInBytes property.)