You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tim Dudgeon <td...@gmail.com> on 2017/12/11 18:05:41 UTC

Writing to message body

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.