[Storage] Add API BlobClient.upload(InputStream, length) #6089
Labels
Client
This issue points to a problem in the data-plane of the library.
design-discussion
An area of design currently under discussion and open to team and community feedback.
Storage
Storage Service (Queues, Blobs, Files)
Track 1 provides the following API which automatically switches between single-put and stage-block upload based on the length:
For customers migrating from Track 1 to Track 2, I think we should provide a synchronous API as similar as possible. Currently in Track 2, there is no way to synchronously upload a stream of arbitrary size with good performance for small blobs. The only option is
BlockBlobClient.getBlobOutputStream()
, which is both more complicated to use and has poor performance for small blobs.The implementation can simply call into the existing sync APIs:
Related: #5275
CC: @rickle-msft
The text was updated successfully, but these errors were encountered: