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









HTTPDownload Method

Description

Downloads an image from the HTTP server.

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

Syntax

Boolean ObjectName. HTTPDownload(String HTTPServer, String HTTPRemoteFile)

Parameters

String HTTPServer: the name of the HTTP server.

String HTTPRemoteFile: the name of the image to be downloaded. It should be the relative path of the file on the HTTP 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 Webcam processes the image according to the extension of the file name(specified in HTTPRemoteFile).

Dynamic Webcam supports the following types of image files:

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

HTTPRemoteFile parameter should include the HTTP directory of the file.

The image downloaded will be displayed in Dynamic Webcam, just as it is acquired from a webcam.

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">
	function btnHTTPDownload_onclick() {
		Webcam.HTTPDownload("localhost", "/webcam/Images/ImageData.jpg");
	}

</script>