diff --git a/trains/storage/helper.py b/trains/storage/helper.py index b7ea0ff6..4e107027 100644 --- a/trains/storage/helper.py +++ b/trains/storage/helper.py @@ -1587,7 +1587,7 @@ class _AzureBlobServiceStorageDriver(_Driver): container.blob_service.create_blob_from_bytes( container.name, object_name, - bytes(iterator), + iterator.read() if hasattr(iterator, "read") else bytes(iterator), # timeout=300, max_connections=2, )