gavisic
gavisic

Reputation: 59

do azure calculate md5 checksum for all the blob uploaded in container?

I checked the blob properties, there I can find this field contentMD5: <Buffer 01 ba 4f 35 88 e1 52 1f 3d c7 7......

just wanted to know, do azure populate this field for all the blob that is upload in storage account by any method(using blob API or portal) by-default. or we have to enable/set any property?

Upvotes: 1

Views: 7355

Answers (2)

Milkman Matty
Milkman Matty

Reputation: 115

Yes, but only on small file sizes. A member of the Azure org on GitHub noted:

Content md5 is only stored by the service, and you cannot get it to calculate the md5 for you*. Your option one was the correct approach: to calculate the md5 locally and set the property.

...

*If your blob is beneath a certain threshold in size, then the service will allow this on single-shot uploads. I believe this number is in the tens of megabytes.

Upvotes: 2

Andy
Andy

Reputation: 13607

Yes. Any file you upload to Azure Blob Storage (using any method of uploading) has it's MD5 calculated automatically. It is part of it's "Properties" object, called ContentMD5. It's shown as a Base64 string in most of Azure's UIs, not as a hex string like what most of us are used to.

Upvotes: 0

Related Questions