Re: Writing file content from a custom header
Writing files directly from a header is not possible afair.
In such situation, you would merely set the body from the DSL, something
Depending on your integration logic, you may also be interested in the
new claim check eip implementation:
On Fri, Mar 30, 2018 at 1:47 PM, Jonathan Cook <jonathan.cook@xxxxxxxxxxxxxx
> I wondered if it was possible when using a file producer when writing file
> content to take the file from a custom header rather than the message body?
> For example imagine in one processor I store the file for later e.g)
> message.setHeader("FILE_OBJECT", file);
> Then later is there a way when I do .to(file:/.. to use the file object
> inside the header "FILE_OBJECT" as the message exchange if you see what I
> I could easily create another bean or processor to do this but wondered if
> it was already possible with the DSL somehow?