Skip to content

Allow s3 ByteStream::read_from for futures::Stream<Item = Result<Bytes, E>> + Send #1283

@edmiester777

Description

@edmiester777

Describe the feature

Much like bytestream can be constructed from a tokio file, we should also allow it to be created from existing in-memory streams.

I've browsed source to find implementation similar, but couldn't find such so please let me know if an option exists.

Use Case

I take in multipart file uploads, and have a case where I'd prefer to just pass my existing multipart stream to the client instead of storing in an intermediate file.

Proposed Solution

An alternative approach to the FsBuilder is to have a more generic IoBuilder that can take in any type of impl AsyncRead<u8>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions