I have a payload that is generated in a Camel Processor that allows its data to be obtained with a writeTo(OutputStream out) method.

Is there an easy way to use this to write to the output Message's body using this method? e.g. Normally you might have an InputStream and and set it using something like exchange.getOut().setBody(inputStream), but here I have something that writes to an OutputSteam.

I know I can used a java.io.PipedInputStream if necessary but thinking there should be an easier way.

Reply via email to