Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the ASCII transmission mode and binary data transmission mode in FTP transmission?

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

FTP transmission ASCII transmission mode and binary data transmission mode is what kind of, for this problem, this article details the corresponding analysis and solution, hoping to help more want to solve this problem of small partners to find a simpler and easier way.

FTP transfer has two modes: ASCII transfer mode and binary data transfer mode

FTP transfer has two modes: ASCII transfer mode and binary data transfer mode

ASCII Transfer: Assuming that the file the user is copying contains simple ASCII text, if the remote machine is not running UNIX, ftp will usually automatically adjust the contents of the file when the file is transferred so that it can be interpreted as the format in which the other computer stores the text file.

But there are often cases when the files the user is transferring do not contain text files. They may be programs, databases, word processing files, or compressed files (although word processing files contain mostly text, they also contain non-printed characters that indicate page size, font, etc.). Before copying any non-text files, use the binary command to tell ftp to copy verbatim and not to process these files, which is also the binary transfer described below:

2. Binary mode of transmission: In binary transmission, the bit order of a file is preserved so that the original and copy correspond bit-by-bit. Even files containing bit sequences on the destination machine are meaningless. For example, macintosh sends an executable file to Windows in binary form, which cannot be executed on the other system.

If you transfer binary files in ASCII mode, they will translate even if they are not needed. This slows down the transfer slightly and also corrupts the data, making the file unusable. (On most computers, ASCII mode generally assumes that the first significant digit of each character is meaningless because ASCII character combinations do not use it.) If you transfer binary files, all bits are important.) If you know that the two machines are identical, binary mode works for both text files and data files.

---------------------------------------------------------------------

FTP is divided into ASC and Bin formats when transferring files, only text files (such as html files) use ASC, and all others use Bin format (such as image files, compressed files, executable files, etc.).

2. When we use ftp, we can simply divide the file into two basic types: text file and binary file; text file is also called ASCII file, its file content follows the definition of ASCII, its main feature is that the file content consists of several lines, you can use the operating system display, edit commands to display and edit the content of ASCII file, it uses the transmission mode asc; Binary file refers to all file formats except ASCII file, which uses the transmission mode bin; it should be noted that ASCII file can be transmitted in binary mode, but binary file must not be transmitted in ASCII mode, otherwise the content of binary file will be destroyed and cannot be used.

3. ASCII switch transmission mode to text mode (can only be used to transmit text files);

BINARY Switches the transfer mode to binary mode (used for all but text files);

ASC is recommended for text file transmission, while BIN must be used for program or data files.

About FTP transmission ASCII transmission mode and binary data transmission mode is what kind of question answer to share here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report