Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B9371050E for ; Thu, 26 Sep 2013 15:05:57 +0000 (UTC) Received: (qmail 4842 invoked by uid 500); 26 Sep 2013 15:05:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 4813 invoked by uid 500); 26 Sep 2013 15:05:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 4802 invoked by uid 99); 26 Sep 2013 15:05:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 15:05:56 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 15:05:50 +0000 Received: by mail-lb0-f173.google.com with SMTP id o14so1178998lbi.18 for ; Thu, 26 Sep 2013 08:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2lKJfhSOhJ5xZta+tW4iMAT8/Jki5FDbxP+d/lg7IoI=; b=kCyD0TXJUIvyIqJ9aYWavlTZKUTFGzu+/c3GFRv0dNn/va6mSSlnHkz7CCPtm68EBg VHPvQTdgSl9tFPM3F4CxlC34ekRq7/KlJUIO8CLd8sz96blU5b/y5V9MRy+eJwX83Sd7 Jxi4CIYYYjCKz9wDGgP2MNdAKMODuSs7uXJq4wNyO9eXLOpzyGsM3WZMzhmh1w7HgkKo c1ymkhhrVPkNyb3aY4KO7fxKuXx9SRiBuODZFPJ5CjmE09jqwhj7u1JD3cflhZ3zW8JP mRBlMePAFSypG3LwZZnzJFU2+hSP6IkKSkMC62zegZCSYJoBjr/7tR1llcWnk3ZMw7Ys abdQ== MIME-Version: 1.0 X-Received: by 10.152.2.74 with SMTP id 10mr1074670las.36.1380207928867; Thu, 26 Sep 2013 08:05:28 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Thu, 26 Sep 2013 08:05:28 -0700 (PDT) In-Reply-To: <1380196950272-5740229.post@n5.nabble.com> References: <1380196950272-5740229.post@n5.nabble.com> Date: Thu, 26 Sep 2013 08:05:28 -0700 Message-ID: Subject: Re: Is it possible to retrieve a stream for a Exchange Body? From: Christian Posta To: "users@camel.apache.org" Content-Type: multipart/alternative; boundary=089e01228e5a51020104e74ab3da X-Virus-Checked: Checked by ClamAV on apache.org --089e01228e5a51020104e74ab3da Content-Type: text/plain; charset=ISO-8859-1 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 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 --089e01228e5a51020104e74ab3da--