You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lefdev <le...@yahoo.com> on 2010/04/16 13:24:44 UTC

unmarshal gzip and streaming

how can i make the following route to work with gzipped files without loosing
the streaming advantages??

from("file://inbox/").split(body().tokenize()).streaming().log("${body}").end().log("Finished")

-- 
View this message in context: http://old.nabble.com/unmarshal-gzip-and--streaming-tp28265741p28265741.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: unmarshal gzip and streaming

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Just ensure the BODY on the Message is an InputStream which can read
from gzip files.
Then that streaming mode in Splitter should use it as is.



On Fri, Apr 16, 2010 at 1:24 PM, lefdev <le...@yahoo.com> wrote:
>
> how can i make the following route to work with gzipped files without loosing
> the streaming advantages??
>
> from("file://inbox/").split(body().tokenize()).streaming().log("${body}").end().log("Finished")
>
> --
> View this message in context: http://old.nabble.com/unmarshal-gzip-and--streaming-tp28265741p28265741.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus