Ftp Object : Type Property |
Visual Basic |
---|
Public Property Type As TypeConstants |
This property can be set at design time.
The default value indicates that a CR/LF pair should be put at the end of every line in the file before sending it. Since the Windows operating system already uses a CR/LF pair as the native line separator, there is no need to modify the stream as it is received or sent. Another operating system that uses a single CR as the native line separator, however, must expand the size of most files it sends, and shrink the size of most files it receives (to change the line separator to/from a CR/LF pair).
When set to ftpImage, the line separator remains unmodified, making this property setting necessary for sending and receiving binary files (that may contain line separators).
The ftpType command is only sent if the server needs it before a transfer starts.