When using a stream (in my case, BytesIO) to upload a blob to Azure, file_checksum reads the file to create the md5 hash. Then, the stream is passed directly to the azure upload_blob function without a seek(0) to reset the cursor position. This results in an empty blob being stored.
Suggest checking in the file_checksum class if the filename object is seekable, and doing a seek(0) in that case
When using a stream (in my case, BytesIO) to upload a blob to Azure, file_checksum reads the file to create the md5 hash. Then, the stream is passed directly to the azure upload_blob function without a seek(0) to reset the cursor position. This results in an empty blob being stored.
Suggest checking in the file_checksum class if the filename object is seekable, and doing a seek(0) in that case