I want to initiate a byte stream (from reading an InputStream) from one micronaut service to another, using declarative clients. I found this Github issue that deals with the client side of what I'm trying to solve.
The proposed solution, on the client side, is to pass in a @Body Flowable<byte[]> content
on the client. I tried that using the sample code, but now I am stuck on how to consume the data on the server side.
For the endpoint's implementation, I similarly take in a Flowable<byte[]>
body parameter and I subscribe to it. The problem is that it's not receiving any data. When the client calls the endpoint it ends up idle timing out.
I verified the created flowable has events holding the byte[] data by subscribing to it on the client side.