Dynamic Web TWAIN: How to load an existing image into image viewer?

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 the MaxImagesInBuffer property properly.

Code(Javascript)

function btnLoad()
  {   
     DWObject.LoadImage("G:\\wwwroot\\test.tiff"); 
     //load an image from local disk
     DWObject.LoadImage("\\\\192.168.1.245\\sme\\Common\\Temp\\10004-10002.tif"); 
     //load an image from a shared folder

  }
    function btnHTTPDownload) {
     DWObject.HTTPDownload("localhost", "/DWObject/Images/ImageData.jpg");
     //load an image from web server into the control
 }

Note: We can only ensure images generated by Dynamic Web TWAIN can be loaded into the control successfully.

Is this page helpful?

Leave a Reply

Your email address will not be published.