Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integration with picture scanner 3

Status
Not open for further replies.

rekenaar

Technical User
Feb 16, 2005
38
ZA
Hello

I just want to know if anyone here has had any experience regarding interfacing a Java application with a scanner?

Basically what I want to do is have a user click a button on a Java app that will let it automatically scan a document that is in the scanner. Then it must take the picture file and insert it into a database (as a blob or binary or whatever).

Has anyone done something similiar? Know of any guides/tutorials regarding this?

Any information will be appreciated.

Wilhelm

By the way: This will only need to work under Microsoft Windows.
 
From my experience, unless the scanner has a kind of API, you'll need to interface with the native libraries of the scanner through JNI.

Cheers,
Dian
 
I have never tried this before; maybe javax.comm packages might be useful here.
CommPortIdentifier,SerialPort events
 
I don't think that's the way to go: that would involve implementing the communication protocols and would only work with serial port on Unix or Solaris.

There's a native library called twain that can give you access to the scanner. Morena is an esay interface to twain.

Some links:

 
Thanks for the replies.

That twain native library is exactly what I need.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top