Why the session is lost during uploading?
Symptoms: You may find the session is lost when you try to upload files to your web server using Dynamic Web TWAIN. Cause: 1. You are using an old version of Dynamic Web TWAIN that does not support session. 2. You are using an authentication mode that the Dynamic Web TWAIN version you are usin ...
How to download images from database to Dynamic Web TWAIN?
You can use the HTTPDownloadEx method to download image(s) from your database to Dynamic Web TWAIN. Please find a simple sample attached.
How to work with SSL?
You can use the IfSSL property. The following JavaScript Sample shows how to use IfSSL property. <script language="javascript"> function btnUpload_onclick() { if (window.location.protocol != "https:"){ frmScan.DynamicWebTwain1.HTTPPort = 80; frmScan.DynamicWebTwain1.IfSSL = false; // ...
Error message: The connection with the server was terminated abnormally
Symptoms: When you upload images in buffer, you may receive the following error message returned by the ErrorString property: Cause: 1. The problem may occur when a connection with the server is not available. 2. The size of images you are going to upload goes beyond the maximum transferable d ...
Error message: HTTP process error
Symptom: When you upload images using the HTTPUploadThroughPost*** method, you may receive the following error messages: Cause: 1. The write permission is not granted to the specified directory on the web server. 2. The action page is incorrect or returns something from Web server. 3. The Port ...
How can I save or upload all images in buffer as a multi-page PDF file?
First, please make sure you set MaxImagesInBuffer Property properly so that the control will store multiple images in buffer. 1. The SaveAllAsPDF method can be used to save all images in buffer as a multi-page PDF file. Click here to get more information about this method. 2. The HTTPUploadAllT ...
How to upload image with Forms-Based Authentication in Your ASP.NET Application
In Dynamic Web TWAIN, we can use HTTPUploadThroughPost method to upload image to the server. But if you use Forms-Based Authentication in Your ASP.NET Application, you might not be able to upload the image successfully. Because the action page will verify the login information for the HTTP post ...
Error message: The handle is in the wrong state for the requested operation
Symptom: When you upload images, you may receive the following error messages returned by the ErrorString property: Cause: 1. The size of images you are going to upload goes beyond the maximum transferable data size which is defined by the server. 2. The port number of the HTTP server is not ...
How to load images not created by Dynamic Web TWAIN?
Normally Dynamic Web TWAIN can load images in formats BMP, JPEG, PNG, PDF, TIFF with no problem even if they are not generated by Dynamic Web TWAIN. But sometimes you may come across an image not created by Dynamic Web TWAIN which can't be loaded in the control. To solve this, you can: 1. Conver ...
How to specify the field name of uploaded image through POST.
When you upload an image with Dynamic Web TWAIN. The Default field name of the uploaded image is "RemoteFile". If you want to specify the field name yourself, you can use the property HttpFieldNameOfUploadedImage.
How to load images not generated by Dynamic Web TWAIN?
Normally Dynamic Web TWAIN can load images in formats BMP, JPEG, PNG, PDF, TIFF with no problem even if they are not generated by Dynamic Web TWAIN. But sometimes you may come across an image not generated by Dynamic Web TWAIN which can't be loaded in the control. To solve this, you can: 1. Conv ...
How can I upload or save each image in buffer as a separate image file?
1. The SaveAs*** method can be used to save a specified image in buffer as an image file. Currently, Dynamic Web TWAIN supports BMP, PNG, JPEG, PDF and TIFF. Click here to get more information.. 2. The HTTPUploadThroughPost method can be used to upload a specified image in buffer as an image fil ...
How to load an existing image into Dynamic Web TWAIN control?
You can use LoadImage method to load an image on the local disk or use HTTPDownload method to download an image on the web server into the Dynamic Web TWAIN control. If you want to load multi-page image or multiple files, please set MaxImagesInBuffer properly. Note: We can only ensure ...
How can I save or upload all images in buffer as a multi-page TIFF file?
1. The SaveAllAsMultiPageTIFF method can be used to save all images in buffer as a multi-page TIFF file. Click here to get more information about this method. 2. The HTTPUploadAllThroughPutAsMultiPageTIFF method can be used to upload all images in buffer to the HTTP server as a multi-page TIFF f ...
Error message: The resource cannot be found
Symptom: When you upload the image by the HTTP Post method, you may receive the following error message returned by the HTTPPostResponseString property: Cause: The problem may occur when the action page does not exist. To get more information about the action page, please refer to Related Arti ...
Error message: HTTP request error
Symtoms: When you upload the image using the HTTP Put method, you may receive the following error message returned by the ErrorString property: Cause: 1. The problem may occur if the write permission is not provided on the server. 2. In Tomcat, the value of readonly property is false by defa ...
How can I add new pages to an existing image file?
First, you should load the image file to Dynamic Web TWAIN. Currently, we only ensure that images created by Dynamic Web TWAIN or Dynamic TWAIN can be loaded successfully. You can use the LoadImage method or the LoadImageEx method to load the image file to Dynamic Web TWAIN. Before acquiring im ...
How can I insert new scanned images to an existing multi-page file?
First, you should load the image file to Dynamic Web TWAIN. Currently, we only ensure that images created by Dynamic Web TWAIN or Dynamic TWAIN can be loaded successfully. You can use the LoadImage method or the LoadImageEx method to load the image file to Dynamic Web TWAIN. Before acquiring im ...
How to load images into Dynamic Web TWAIN?
If you are loading a multi-page image file, you should set the maximum number of images that can be held in Dynamic Web TWAIN by using the MaxImagesInBuffer property. Then you can use the LoadImage method or the LoadImageEx method to load images into Dynamic Web TWAIN (DWT). Code: //JavaScript ...
Can I set username and password when uploading and downloading via FTP?
Yes. You can use the FTPUserName property and the FTPPassword property. Code: function btnUpload_onclick() { frmScan.DynamicWebTwain1.FTPUserName = "UserName"; frmScan.DynamicWebTwain1.FTPPassword = "Password"; frmScan.DynamicWebTwain1.FTPUploadAllAsPDF("192.168.1.20", "/Test/test.pdf" ...