It is generally not an error to transfer text files with binary files types. However, transferring binary files as text will result in the files being transferred incorrectly -- They will be of no use in any application. Note that ascii is the default transfer mode.
Note: Many recent graphical based FTP clients, such as Fetch, have an automatic mode. Do not rely on this method to work for binary files. Just try downloading a gif file this way!!!
You need to get used to recognising what file extensions mean to recognise the file type. See the following chapter 5 for this information. If in doubt about a file set binary type.
The following commands may be used to set file transfer type:
[
type-name ]
Set the "representation type" to type-name. The
valid type-names are ascii for "network ASCII",
binary or image for "image", and tenex for "local
byte size" with a byte size of 8 (used to talk to
TENEX machines). If no type is specified, the
current type is printed. The default type is
"network ASCII".
Clearly it is easy to use ascii and binary. The type command is more closely related to the FTP protocol as we will shortly see.