Users can upload files to Azure blob storage via my web API service. And the blobs have MD5 hashes.
Now another API lets the user download files they previously uploaded. The API returns:
return File(blobFile, MediaTypeNames.Application.Octet, file.FileName);
So the javascript client receives a byte array with a header
Content-Type: application/octet-stream
The question is how does the js client validate the MD5 of the downloaded file matches the one that is from the blob?
I tried some online MD5 tools and they don't give me the same MD5 as the blob...