aspose file tools*
The moose likes Java in General and the fly likes How does Java interact with scanner device drivers? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How does Java interact with scanner device drivers?" Watch "How does Java interact with scanner device drivers?" New topic
Author

How does Java interact with scanner device drivers?

Jon McDonald
Ranch Hand

Joined: Sep 02, 2001
Posts: 167
Hi All,
I've got a project at work that requires me to write an application that gets files made by a scanner. I DO NOT need to be able to view the image created.
All I need to do is this: interact with a document scanner which is using either ISIS or TWAIN device drivers. Create a file based on the document that they have scanned, and move the file to another location.
The only thing I need to know is how does the Java app create the file from the scanner? Does one or both of those drivers provide an OutputStream that can be accessed by Java? If not, how does Java manipulate them? Any help would greatly be appreciated.
JON


SCJP<br/>
"I study politics and war that my sons may have the liberty to study mathematics and philosophy in order to give their children a right to study painting poetry and music."<br />--John Adams
Erik Pragt
Ranch Hand

Joined: Sep 08, 2001
Posts: 125
I would suggest taking a look at this website:
http://www.gnome.sk/
They provide TWAIN support for java. I als read that you cannot use the JMF for that, but I read it in articles dating 1999, so I'm not sure if things have changed.
Erik
Jon McDonald
Ranch Hand

Joined: Sep 02, 2001
Posts: 167
Thanks alot for the info.
I checked out the site. Looks pretty thorough. I think that is what I am looking for (either that, or use JNI to write the interface to the TWAIN driver myself).
Jon
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Originally posted by Erik Pragt:
I would suggest taking a look at this website:
http://www.gnome.sk/
They provide TWAIN support for java. I als read that you cannot use the JMF for that, but I read it in articles dating 1999, so I'm not sure if things have changed.
Erik

Thanks, Erik!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How does Java interact with scanner device drivers?