File Transfer Protocol (FTP) is a standard network protocol used to exchange and manipulate files over a TCP/IP based network, such as the Internet. FTP is built on a client-server architecture and utilizes separate control and data connections between the client and server applications.
While transferring data over the network, several data representations can be used. The two most common transfer modes are:
- ASCII mode: only for plain text. (Any other form of data will be corrupted)
- Binary mode: the sending machine sends each file byte for byte and as such the recipient stores the bytestream as it receives it. (The FTP standard calls this “IMAGE” or “I” mode)