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 <steni...@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

Reply via email to