Follow us

Tuesday, November 29, 2011

FTP transfer modes

There are two different transfer modes in FTP, viz :

  1. ASCII mode
  2. Binary mode.

FTP transfer modes

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:
  • HTML documents and CSS,
  • Text files,
  • Pure ASCII text (such as notepad files) files and
  • Files containing scripting delivered through HTTP
Used primarily for data type transfers such as :
  • Executable programs,
  • Compressed files,
  • Pictures & other graphics files and media files,
  • Non-text document formats such as OpenOffice or Microsoft Office files
  • *CR : Carriage Return
  • *LF : Line Feed

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

0 comments: on "FTP transfer modes"

Post a Comment