camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Is it possible to retrieve a stream for a Exchange Body?
Date Thu, 26 Sep 2013 15:05:28 GMT
Well, what exception are you getting? Or is it not throwing an exception?
Camel uses type converters [1] to do that kind of conversion. Depending on
the body type currently, you may have to write your own converter.

[1]... http://camel.apache.org/type-converter.html


On Thu, Sep 26, 2013 at 5:02 AM, niels_s <steniels@gmail.com> wrote:

> Hey there,
>
> I'm experimenting and creating my own component to use Apache Tika.
> Now I was wondering if it's possible to retrieve a stream for a Exchange
> Body?
>
> I'm trying like this right now but doesn't seem to do the job:
>
> InputStream is = exchange.getIn().getBody(java.io.InputStream.class);
>
> I'm using Camel's DefaultComponent and DefaultProducer. Maybe I should be
> using the StreamProducer?
> Can anybody get me on the right direction?
>
> Thanks ,
>
> Niels
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Is-it-possible-to-retrieve-a-stream-for-a-Exchange-Body-tp5740229.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message