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









HTTPDownloadDirectly Method

Description

Directly download a file from the HTTP server to a 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. HTTPDownloadDirectly(String HTTPServer, String LocalFile, String HTTPRemoteFile)

Parameters

String HTTPServer: the name of the HTTP server.

String HTTPRemoteFile: The relative path of the file on the HTTP server.

String LocalFile: specify the location to store the downloaded 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 information.

Remarks

HTTPRemoteFile parameter should include the HTTP directory of the file.

See also

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

Sample

A JavaScript sample is provided.

<script language="javascript">

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

function btnHTTPDownloadDirectly_onclick() {
	Webcam.HTTPDownloadDirectly("localhost", "/temp/TestData.zip", "D:/temp/TestData.zip");
}

</script>