You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/06/20 13:47:00 UTC

[jira] Resolved: (CAMEL-624) cannot convert from a StreamSource to an InputStream

     [ 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.