Dynamsoft Home|Product Home

FTPUpload Method

Description

Uploads the image of a specified index in buffer to the FTP server.

Syntax

Boolean ObjectName. FTPUpload (String FTPServer, Short sImageIndex, String FTPRemoteFile)

Parameters

String FTPServer: the name of the FTP server.

Short sImageIndex: specifies the index of image in buffer. The index is 0-based. 

String FTPRemoteFile: the name of the file to be created on the FTP server.

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

Dynamic Web TWAIN processes the image format according to the extension of the FTPRemoteFile.

Dynamic Web TWAIN supports the following types of image files:

Bitmap *.bmp, *.dib
JPEG *.JPG, *.JPEG, .*.JPE, *.JFIF
TIFF *.TIF, *.TIFF
PNG *.PNG

FTPRemoteFile parameter should include the FTP directory of the file.

Write permission of the specified directory is needed for uploading.

See also

FTPUserName property, FTPPassword property, FTPPort property, ProxyServer property, FTPDownload(), HTTPPort property, HTTPUserName property, HTTPPassword property, HTTPDownload(),, HTTPUploadThroughPut(), HTTPUploadThroughPost()