camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dudgeon <>
Subject Writing to message body
Date Mon, 11 Dec 2017 18:05:41 GMT
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 if necessary but thinking 
there should be an easier way.

View raw message