/camel.465427.n5.nabble.com/Rep-Splitting-Message-from-Ftp-Consumer-tp5760220p5760489.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I’ve testing a little more and the issue seems related to the Expresion
used by split to iterate.
Ftp consumers generates a message with body input of type RemoteFile<
FtpFile>. org.apache.commons.net.ftp.FtpFile#toString() method returns the
strange splitted content which originated the pos
t_conversion.txt
mailto:francois.l...@poplidays.com>
www.poplidays.com<http://www.poplidays.com/>
[1_logo]<http://www.poplidays.com/>?
From: Noam Ramonet
Sent: Friday, December 5, 2014 3:15 PM
To: François LIOT
Cc: users@camel.apache.org
Subject:
Thanks Francois for your suggestions.
I forced binary and changed tokenize pattern to ";" (semicolon), but
problem remains:
ftp://user:pass@host/
postalBox/inBox?fileName=simpleTextData.txt&localWorkDirectory=temp&binary=true"/>
Your issue is probably due to the fact you use "\n" as separator.
Use binary ftp option, to guaranty you will receive the very same encoded ascii
stream as it could be hosted remote side, and test other fragrances of CRLF
("\r\n", "\n"...).
Noam Ramonet a écrit :
>Hi all,
>
>I’m getting an s
Hi all,
I’m getting an strange behaviour splitting a message body coming from a ftp
consumer. Below route works perfectly when I use a local file consumer
(line commented). I get a log message per file input line, and I can
process the content later correctly.
But when I change to the ftp I get