IN_FtpFileDownload

All Editions  image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_FtpFileDownload function uses File Transfer Protocol (FTP) to download an Internet file to a folder called Spicer under the system temporary folder.

Syntax

int IN_FtpFileDownload( pServer, pUserID, pPassword, port, pRemotefile, maxSize, pLocalFile )

Input Parameters

Values

Meaning

CHARPTR pServer

pointer to the name of the FTP server (or IP address)

CHARPTR pUserID

"" no user ID required

string valid user ID. See Remarks.

CHARPTR pPassword

"" no password required

string valid password. See Remarks.

SHORT port

0 use the default port number

other integer use this port number

CHARPTR pRemoteFile

full name and path of the file to download

SHORT maxSize

the maximum number of bytes in the pLocalFile array

Output Parameters

Values and Meaning

CHARPTR pLocalFile

pointer to the name of the local file on disk

Remarks

Typically, a specific userID and password are not required to download files.

No check is done on file format, so you can download files that are not supported in Imagenation.

You will get an error message if you download a file with the same name as a previously downloaded file. Several other error messages are specific to this and related functions. For a list of all error codes, click Error and warning codes.

Release information

Added to Imagenation for Windows in Release 6.3.

Not supported in Imagenation for UNIX.

See also

Uploading and downloading Internet files