You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Nafees <s....@gmail.com> on 2012/07/06 10:25:24 UTC

FTP misses few bytes when downloading files

Hi All,

I am using FTP component to download files from FTP server to my local
folder, but it is missing 2 bytes of data for few files. 

My FTP url will be like this:
{0}://{1}@{2}/{3}?password={4}&passiveMode={5}&pollStrategy=#optimerPoll&throwExceptionOnConnectFailed=true&maximumReconnectAttempts=1&localWorkDirectory=/tmp&idempotent=true

My File URL is 
{0}://{1}?noop={2}&autoCreate=false

 why it is unable to download files correctly. Please help me out.

Thanks & Regards
Nafees

--
View this message in context: http://camel.465427.n5.nabble.com/FTP-misses-few-bytes-when-downloading-files-tp5715593.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP misses few bytes when downloading files

Posted by Nafees <s....@gmail.com>.
Hi Claus,

I am extremely thankful to you. It is working fine now. U have helped me
resolved major problem. 

Thanks 

Nafees

--
View this message in context: http://camel.465427.n5.nabble.com/FTP-misses-few-bytes-when-downloading-files-tp5715593p5715646.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP misses few bytes when downloading files

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Maybe you need to use binary transfer mode, binary=true
http://camel.apache.org/ftp2

On Fri, Jul 6, 2012 at 10:25 AM, Nafees <s....@gmail.com> wrote:
> Hi All,
>
> I am using FTP component to download files from FTP server to my local
> folder, but it is missing 2 bytes of data for few files.
>
> My FTP url will be like this:
> {0}://{1}@{2}/{3}?password={4}&passiveMode={5}&pollStrategy=#optimerPoll&throwExceptionOnConnectFailed=true&maximumReconnectAttempts=1&localWorkDirectory=/tmp&idempotent=true
>
> My File URL is
> {0}://{1}?noop={2}&autoCreate=false
>
>  why it is unable to download files correctly. Please help me out.
>
> Thanks & Regards
> Nafees
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-misses-few-bytes-when-downloading-files-tp5715593.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen