Open nitely opened 5 years ago
Hi @nitely, thanks for reaching out!
This is related to #536. It seems that the SDK doesn't support string stream in general. We'll investigate and get back to you.
FWIW I don't think the fix is worth it. I'd bet implementing this for multi-thread upload is non-trivial and the solution won't be great performance-wise.
But I think at the very least the docstring should be fixed to accept actually, is should be io.BytesIO
as type instead of IOBaseio.BytesIO|io.FileIO
since it accepts a file descriptor too, but only in binary mode.
My 2c
Which service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of
pip freeze
.Azure 4.0.0, blob 1.4.0
What problem was encountered?
create_blob_from_stream
says it supportsio.IOBase
, however it only supports bytes stream, not string/plain text stream or file.Relevant function and error raised
Have you found a mitigation/solution?
No.
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.