There are two different transfer modes in FTP, viz :
- ASCII mode
- Binary mode.
Difference between ASCII and Binary Transfers
|ASCII Mode||BINARY Mode|
When using ASCII mode, files are not transferred byte-for-byte. Instead, the newline
character(s) on the source platform (e.g. in Windows, CR+LF) are replaced with the
newline character(s) on the target platform (e.g. on Unix, LF). This means the source
file may not be the same size as the end result if the platforms differ.
Remember do not use this mode when transferring binary files, since this will end up with corrupted files.
|File is transferred byte-for-byte, i.e. an exact copy of the file or data is transferred|
Used primarily for transfer of text-based files such as:
Used primarily for data type transfers such as :
- *CR : Carriage Return
- *LF : Line Feed