So, we created a Simple HTML file with simple java script that call Twain.Twain is an exe file that scans documents whatever the scanner type is. So you can use it with any type of scanner and Digital Cameras.
The scenario goes like this:
1- create a table that contains two columns :program blob ,program_path varchar2.
2- upload the file TwainGui.exe to the table in "program " column. "program_path" column represents the path that the user should download the file to it.
3-create an icon or button like "download" in your main form to enable end user to download "TwainGui.exe" from your database.
4- copy the html "scan.html" to htdocs in your application server
5- invoke the html using Web.Show_Document from your application form.
open the scan.html file with notepad and search for "shell.run("
function runApp()
{
var shell = new ActiveXObject("WScript.shell");
shell.run("d:\\TwainGui.exe", 1, true);
}
take care of the path in "shell.run(" it must be the same path in "program_path" column
download the file
and copy the content into D:\ drive and double click on scan.html