How can an org.reactivestreams.Publisher<ByteBuffer>
be created from a java.io.InputStream
?
Context: I am using the awssdk to create an AsyncRequestBody
, I have an InputStream and am therefore trying to use the AsyncRequestBody.fromPublisher
method since none of the other "from" methods match.
There is a similar question but it seems like the true issue in that question is related to mongo (based on the answer); my question is a broader reactive streams issue.
Thank you in advance for your consideration and response.