Method FTPClient():setTransferMode() Professional
Set the mode with which the transfer is performed.
:setTransferMode( <nMode> ) --> self
|FTP_TRANSFER_TYPE_ASCII||Transfers the file using FTP ASCII, Type A, transfer method. Control and formatting data is converted to local equivalents|
|FTP_TRANSFER_TYPE_BINARY||Transfers the file using FTP Image, Type I, transfer method. The file is transferred exactly as it exists with no changes. This is the default transfer method.|
|FTP_TRANSFER_TYPE_UNKNOWN *)||File is transferred in binary mode|
This method returns the object of the class.
With this method the transfer mode, with which the transfer is performed, may be set. Basically there are two techniques for this. In binary mode each byte is transferred exactly as it is. This mode is used for transferring data which must not be changed in any way. The ascii mode is used for transferring textual data where formatting characters may be changed to local settings.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.