-
I have an API where I receive an AsyncRead with a non-static lifetime, that I would like to upload to s3, is there any good and easy way to do this? I cant find a way to create a byte stream from a Read, so currently I have an adapter that will provide a Stream, and then I can do
but that doesn't feel like the best way to do it, and I still get an error about Transfer encoding not being supported. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To answer my own question, the answer is to not try to feed the reader in to the SDK somehow. Instead just read the reader and feed the result to a multipart upload. |
Beta Was this translation helpful? Give feedback.
To answer my own question, the answer is to not try to feed the reader in to the SDK somehow. Instead just read the reader and feed the result to a multipart upload.