Gets and sets the current file transfer type for FTP
transfers.
Syntax
object.FileType [= filetype]
The object is an expression that evaluates to a FileTransfer
object. The property returns a long integer value.
Remarks
The FileType property specifies the type of file transfer
between the local and remote host. The file transfer types
supported are:
| Value |
Constant |
Description |
| 0 |
ftpFileTypeASCII |
The file being transferred is an ASCII file.
The characters that mark the end of a line (for example, a carriage
return/linefeed pair under MS-DOS) are automatically converted to
the format used by the target operating system. |
| 1 |
ftpFileTypeEBCDIC |
The file being transferred is a text file
created using the EBCDIC character set. If a file is being copied
to a remote system, the ASCII characters are automatically
converted to EBCDIC. If the file is being retrieved from a remote
system, the EBCDIC characters are automatically converted to
ASCII. |
| 2 |
ftpFileTypeBinary |
The file is transferred without any
modification. This is the default file transfer type, and should be
used when transferring binary (non-text) data. |
Data Type
Integer
See Also
GetFile Method, PutFile Method
|