Free 14-Day Evaluations    
Product Downloads    

Sign in     


DESKTOP MOBILE DOWNLOAD PURCHASE SUPPORT INFO COMPANY
 Home  >>  Support  >>  Knowledge Base

ASCII and Binary File Transfer

There is one option common to all file transfer methods and protocols: ASCII or binary mode. Each has a specific use. Using the wrong mode can corrupt files during transfer, even when everything else is correct.

ASCII file transfer mode is intended for plain text only. Files transferred in ASCII will have carriage returns and line feeds adjusted for the receiving system. If both systems are running the same OS, such as two Linux systems communicating, nothing special happens. But DOS and UNIX, for example, handle text files in slightly different ways. ASCII mode makes the necessary changes automatically.

Binary mode, on the other hand, makes no changes at all. The file is transferred in a raw data format. This makes binary the required mode for image files, programs and the like. If you have any doubt, use binary mode for the file transfer.

There’s an irreverent but in-depth discussion of the two available at htmlgoodies.com. It’s specific to FTP, but the advice about ASCII and binary modes applies across the board.

Comments are closed.

  Copyright © 2024 Century Software, Inc. All Rights Reserved999 TERMS OF USE PRIVACY POLICY EULA