TWAIN ActiveX/Plug-in Windows/Mac HTTP Control/SDK

FTPDownload Method

Description

Downloads an image from the FTP server.

Support information

ActiveX Edition Plug-in Edition Mac Edition
Since V4.0 Since V4.0 Since V6.4

For Mac Edition, the method doesn't support Proxy and SSL.

Syntax

Boolean ObjectName. FTPDownload(String FTPServer, String FTPRemoteFile)

Parameters

String FTPServer: the name of the FTP server.

String FTPRemoteFile: the name of the file to be downloaded. It should be the relative path of the file 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
PDF *.PDF

FTPRemoteFile parameter should include the FTP directory of the file.

The image downloaded will be displayed in Dynamic Web TWAIN, just as it is acquired from a TWAIN Data Source.

See also

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

Sample

A JavaScript sample is provided.

<script language="javascript">
	function btnFTPDownload_onclick() {
		WebTWAIN.FTPDownload("192.168.1.20", "/WebTWAIN/Images/ImageData.jpg");
	}
	
</script>
		




TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2012 Dynamsoft Corporation. All Rights Reserved.