commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Net- Corrupt Files FTP on UNIX
Date Fri, 09 May 2003 22:51:37 GMT

In message <KHEGJHDMFALNLEIJJKJBMEENCJAA.Karen.Schaper@dhl.com>, "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 ...

daniel




Mime
View raw message