| <<< Home | << Web | < HTML Notes | Top | Bottom | < Prev | Next > |
|
Topics on this page
Binary ModeWhen you send data using binary mode, the data is transmitted exactly as it is. You need to use binary mode to send files such as graphics or midis in binary mode so that your FTP program doesn't change anything. Ascii ModeWhen you send data using ascii mode, the data is may be modified in various ways. You need to use ascii mode to send text files such as .htm, .txt, .css and .js files. The most obvious change that the FTP program makes to the file is for the end-of-line characters. In a text file, each line of data has one or two characters at the end that marks the end of the line. On Unix machines, a LF (line feed) character is used for this. On Macs, a CR (carriage return) character is used. On DOS and Windows machines, both a LF and a CR are used. Your FTP program knows what type of machine you're using, and you tell it what type of machine you're sending to. It automatically changes the end-of-line characters for you. If you try to send a binary file such as a graphic using ascii mode, any bytes that just happen to match the code for a LF or CR might get translated to something else. This is why you must use binary mode to transmit those types of files.
Automatic mode detectionYour FTP program can probably choose the correct mode automatically for you. I use WS-FTP Pro for Windows, so my instructions here are for that program. If you use a different FTP program, it probably has a similar feature.
When you click on the "options" button, the following window pops up:
|
| <<< Home | << Web | < HTML Notes | Top | Bottom | < Prev | Next > |