BINARY (Set Transfer Type to Image)
The BINARY IBM® i FTP client subcommand sets the file transfer type to BINARY format.
FTP client subcommand
Binary
There are two basic file types you can use when transferring files with FTP: ASCII and BINARY. ASCII files are plain text files. They can have extensions like .txt or have no extension at all. BINARY files are programs or other non-text files saved in the file format of the application that created them or archived or compressed file formats.
If you are transferring binary data to an existing IBM i file, the record length is the record length of the existing IBM i file. For example, the existing file size should accommodate the new data. If the file does not exist on the system, FTP chooses a record length for you.
Certain files, such as save files, require binary image transfer. If TYPE is not binary when attempting to transfer such files, you receive a message that tells you to use binary.