git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing file content from a custom header


You can set the body from header value using simple in java dsl before
passing the exchange to file component.

On Fri, 30 Mar 2018, 5:17 pm Jonathan Cook, <jonathan.cook@xxxxxxxxxxxxxx>
wrote:

> Hi,
>
> 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 mean?
>
> I could easily create another bean or processor to do this but wondered
> if it was already possible with the DSL somehow?
>
> Thanks
>
>


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03207.html on line 94
Call Stack
#TimeMemoryFunctionLocation
10.0006363064{main}( ).../msg03207.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03207.html on line 94
Call Stack
#TimeMemoryFunctionLocation
10.0006363064{main}( ).../msg03207.html:0