You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rwijngaa <ri...@gmail.com> on 2016/08/09 11:58:12 UTC

Use splitter to ftp List of InputStreams

Hi,

I'm using the splitter as mentioned  here
<http://camel.465427.n5.nabble.com/ftp-multiple-streams-in-body-custom-splitter-tp5774343p5774477.html> 
, but with a modified aggregation strategy in order to accumulate all files
processed and ftp the all (the aggregator in the link will just return the
last file)



The problem is, i get this:





--
View this message in context: http://camel.465427.n5.nabble.com/Use-splitter-to-ftp-List-of-InputStreams-tp5786195.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Use splitter to ftp List of InputStreams

Posted by rwijngaa <ri...@gmail.com>.
No, that doesn't matter (or else it would fail earlier).
It's because i supply a LIST of InputStreams instead of one.

Regards
Rino



--
View this message in context: http://camel.465427.n5.nabble.com/Use-splitter-to-ftp-List-of-InputStreams-tp5786195p5786197.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Use splitter to ftp List of InputStreams

Posted by souciance <so...@gmail.com>.
The problem could be here:

allFiles.add(oldExchange.getIn().getBody(InputStream.class));

You are expecting InputStream but the body is actually FileInputStream.
Maybe you need to convert from FileInputStream to InputStream if that is
what you want?




--
View this message in context: http://camel.465427.n5.nabble.com/Use-splitter-to-ftp-List-of-InputStreams-tp5786195p5786196.html
Sent from the Camel - Users mailing list archive at Nabble.com.