I'm uploading files in AZURE blob storage using c# library. If I upload a file with byte[], it calculates MD5 (verified in AZURE portal - displays CONTENT-MD5 value).
CloudBlockBlob blockBlob = GetUserProjectsBlob(blobName);
blockBlob.UploadFromByteArray(file, 0, file.Length);
I need to upload a large file into AZURE. So I'm using PutBlock & PutBlockList methods..
string blockHash = GetMd5FromStream(new MemoryStream(file));
blockBlob.PutBlock(blockId, new MemoryStream(file, true), blockHash);
// To commit transaction
blockBlob.PutBlockList(blockIDsBase64);
But in the above scenario, CONTENT-MD5 is missing in the AZURE portal. I have also tried this..
BlobRequestOptions opt = new BlobRequestOptions();
opt.StoreBlobContentMD5 = true;
UseTransactionalMD5 = true;
blockBlob.PutBlockList(blockIDsBase64, null, opt);
But still no luck. Any ideas about how to resolve this?