camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-624) cannot convert from a StreamSource to an InputStream
Date Fri, 20 Jun 2008 11:47:00 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Strachan resolved CAMEL-624.
----------------------------------

    Resolution: Fixed

Patch applied to fix this.

A workaround for now is to use a dummy processor

{code}
from(...).process(
  new Processor() {
     public void process(Exchange exchange) {
        StreamSource source = exchange.getIn().getBody(StreamSource.class);
        if (source != null) {
            in.setBody(source.getInputStream());
        }
    }
}).
to(...)
{code}

> cannot convert from a StreamSource to an InputStream
> ----------------------------------------------------
>
>                 Key: CAMEL-624
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-624
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 1.4.0
>
>
> e.g. from JBI to File automaticaly
> See this thread
>  http://www.nabble.com/working-with-jms-tp18026353s22882p18026676.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message