in reply to File size on the Remote server

Did you do $ftp->binary()?

Replies are listed 'Best First'.
Re: Re: File size on the Remote server
by sravan2000 (Initiate) on Jun 05, 2001 at 23:48 UTC
    No. it's in Ascii format and stream mode. Do you think this could be the problem ?? Thanx
Re: Re: File size on the Remote server
by sravan2000 (Initiate) on Jun 06, 2001 at 01:31 UTC
    I did changed to binary. Now it's been working and I'm getting the correct file size. But my question is, when I'm FTP'ing to the same OS remote server (HP) and the file is an ascii type, is there any kind of impact ??? thanx
      Glad it's working for you now. What you need to understand about ascii type is that it changes all line ends to carriage-return-line-feeds when they go "over the wire" from one machine to the other. Even if the two machines have the same end of line conventions, your file gets chewed on twice (once converting to CRLFs, and again when converting back), and in some cases that might leave some tooth marks. Some ftp clients will detect that situation and automatically switch to binary mode... others won't.