Date: 2004-09-09T11:27:19 Editor: RoryWinston <[EMAIL PROTECTED]> Wiki: Jakarta Commons Wiki Page: Net/FrequentlyAskedQuestions URL: http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions
no comment Change Log: ------------------------------------------------------------------------------ @@ -9,7 +9,7 @@ ---- '''Q: Why are my files corrupt after transfer?''' -'''A:''' The most common cause for this is when the file is transfered as ASCII but the contents of the file are not ASCII and the file should be transferred as BINARY. RFC 959 says the default transfer mode should be ASCII. FTPClient conforms to the standard. You must explicitly call <pre>setFileType(FTP.BINARY_FILE_TYPE);</pre> to request binary transfer mode after logging in to the FTP server. +'''A:''' The most common cause for this is when the file is transfered as ASCII but the contents of the file are not ASCII and the file should be transferred as BINARY. 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. ---- '''Q: How do I get passive mode correctly started?''' --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
