aws-sdk-rust icon indicating copy to clipboard operation
aws-sdk-rust copied to clipboard

Support for converting stream that implements `AsyncRead` into `ByteStream`

Open marcustut opened this issue 1 year ago • 13 comments
trafficstars

Describe the feature

At the moment ByteStream can be made from file or from a Vec<u8>, however for the case of a web server, that meant I have to first copy the contents from the request into my local filesystem or to the memory. It would be nice if ByteStream can take a stream that implements AsyncRead hence making it a lazy stream.

Use Case

To be able to use multipart upload without copying the contents local filesystem.

Proposed Solution

Allow ByteStream to supports AsyncRead

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

marcustut avatar Jan 03 '24 19:01 marcustut