commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: Net- Corrupt Files FTP on UNIX
Date Fri, 09 May 2003 23:01:47 GMT

Daniel F. Savarese wrote:
> In message <>, "Karen Schaper
> " writes:
>>	I am not specifying which mode.  Does the FTPClient object have a defau
>>lt mode?
> RFC 959 says the default transfer mode should be ASCII.  FTPClient conforms
> to the standard.  You must explicitly call setFileType(FTP.BINARY_FILE_TYPE);
> to request binary transfer mode after logging in to the FTP server.  Enough
> people get tripped up by this, I'm afraid we're going to have to change the
> default.  But then people may start reporting that their line terminators
> aren't being translated ...

I would expect to find a warning for such a thing at the end of a class 
documentation for a main client class to be a sufficient warning...


View raw message