FTP_SetType

4D - Documentation   Français   English   German   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next

version 6.5


FTP_SetType (ftp_ID; ftp_Mode) Integer

ParameterTypeDescription
ftp_IDLongintReference to a FTP login
ftp_ModeString"A" = Ascii; "I" = [Default] Image; "L 8" = Logical 8-bit
Function resultIntegerError Code

Description

The command FTP_SetType is used to alter the FTP transfer mode used during Send/Receive operations. Typically this will not need to be changed from the default settings. However, because of differences between various platforms and ftp implementations, it may be necessary to change the mode for certain types of FTP transfers. In particular, some transfers of plain-text documents may require you to switch the mode to Ascii in order to properly transfer the text file.

ftp_ID is the long integer reference to the FTP session established with FTP_Login.

ftp_Mode should contain a code as described above indicating the preferred transfer mode to use for future Send/Receive operations. By default, the Image ("I") tranfer mode is used.

See Also

FTP_GetType.


4D - Documentation   Français   English   German   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next