Downloads an image from the HTTP server.
Boolean ObjectName. HTTPDownload(String HTTPServer, String HTTPRemoteFile)
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.
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.
Dynamic Web TWAIN processes the image format according to the extension of the HTTPRemoteFile.
Dynamic Web TWAIN supports the following types of image files:
| Bitmap | *.bmp, *.dib |
| JPEG | *.JPG, *.JPEG, .*.JPE, *.JFIF |
| TIFF | *.TIF, *.TIFF |
| PNG | *.PNG |
HTTPRemoteFile parameter should include the HTTP directory of the file.
The image downloaded will be displayed in Dynamic Web TWAIN, just as it is acquired from a TWAIN Data Source.
FTPUserName property, FTPPassword property, FTPPort property, ProxyServer property, FTPDownload(), FTPUpload(), HTTPPort property, IfSSL property, HTTPUserName property, HTTPPassword property, HTTPUploadThroughPost(), HTTPUploadThroughPut()
A JavaScript sample is provided.
<script language="javascript">
function btnHTTPDownload_onclick() {
frmScan.DynamicWebTwain1.HTTPDownload("localhost", "/WebTWAIN/Images/ImageData.jpg");
}
</script>
|
TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2009 Dynamsoft Corporation. All Rights Reserved.