Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.757 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: IndyFTP: ftBinary oder ftASCII nutzen?

  Alt 1. Okt 2009, 10:35
Guten Morgen,

der Ascii Übertragungsmode ist für TextDateien (asciiDateien) gedacht
soweit ich das weiß werden da die Zeileendezeichen angepasst wenn
de transfer zwischen zwei unterschiedlichen Systemen (linux, Windows)
stattfindet.

Im BinaryMode werden die Dateien 1 zu 1 übertragen.

Mich wundert das es bei dir vorher bei der Übertragung von exe Dateien
keine Probleme gab.

edit:

Zitat von RFC959 - File Transfer Protocol:
3.1.1.1. ASCII TYPE

This is the default type and must be accepted by all FTP
implementations. It is intended primarily for the transfer
of text files, except when both hosts would find the EBCDIC
type more convenient.

The sender converts the data from an internal character
representation to the standard 8-bit NVT-ASCII
representation (see the Telnet specification). The receiver
will convert the data from the standard form to his own
internal form.

In accordance with the NVT standard, the <CRLF> sequence
should be used where necessary to denote the end of a line
of text. (See the discussion of file structure at the end
of the Section on Data Representation and Storage.)

Using the standard NVT-ASCII representation means that data
must be interpreted as 8-bit bytes.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat