|
Summary
Set transfer type to binary file transfer.
Syntax
Boolean Binary ()
Description
The Binary method sets the file transfer type to binary. During file transfer, no file conversion is performed. Files are sent and received exactly as they are saved on the originating
machine. This allows undisturbed transfers of non-text files, such as compressed files, archives and executables.
The Binary method takes no parameters and returns a boolean. If the transfer type can be successfully set to binary type file transfer, then the method returns True; otherwise, it returns False. The
application should ensure that the method was successfully executed by checking the return value. The method also sets the LastResult property. The value of the LastResult property can be checked to
determine if any error occurred.
Calling this method is equivalent to setting the TransferType property to TRANSFER_TYPE_BINARY.
This method can be called at any time except during a file transfer.
Example
Result = FTPClient.Binary ()
|