The leading provider of version control solutions and TWAIN SDKs
  • Contact us









FTPDownloadDirectly Method

Description

Directly download a file from the FTP server to local disk without loading it into Dynamic Webcam.

ActiveX Edition Plug-in Edition Mac Edition
Since V7.0 Since V7.0 Since V7.0

Syntax

Boolean ObjectName. FTPDownloadDirectly(String FTPServer, String FTPRemoteFile, String LocalFile)

Parameters

String FTPServer: the name of the FTP server.

StriString FTPRemoteFile: the name of the file to be downloaded. It should be the relative path of the file on the FTP server.

String LocalFile: specify a full path to store the file.

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 informat property for error information.

Remarks

FTPRemoteFile parameter should include the FTP directory of the file.

See also

FTPUserName, FTPPassword, FTPPort property, ProxyServer property, FTPUploadEx(), FTPDownload(), HTTPPort property, HTTPUserName property, HTTPPassword property, HTTPDownloadEx(), HTTPUploadThroughPutEx(), HTTPUploadThroughPostEx()

Sample

A JavaScript sample is provided.

<script language="javascript">

WeWebcam = document.getElementById("iDynamicWebcam");
//iDynamicWebcam is the id of the Dynamic Webcam

function btnFTPDownloadDirectly_onclick() {
	Webcam.FTPDownloadDirectly("192.168.1.20", "/temp/TestFile.zip","d:/temp/TestFile.zip");
}
</script>