[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ajug-members]: controlling a scanner from Java



John,

When OS drivers are necessary for hardware, to me, that is the point
where you're getting tied to the OS. That being said Windows almost
universally abstracts Scanners (and some digital cameras) to the TWAIN
interface. 

Therefore you're going to need a Java TWAIN library (hope I'm not
preaching to the choir too much here). Here's a link to an article on
interfacing Java to TWAIN and Google will find you the rest of what you
need.

http://www.javaworld.com/javaworld/jw-07-2002/jw-0726-twain.html

I haven't done this in pure Java, but have had great success with the
Win32 Libraries from LeadTools:
http://www.leadtools.com/

The beauty of TWAIN is that you're client won't be tied to a specific
scanner and you'll be the hero :-) unless the say cool let's run it on
Linux too :-0

Angus

On Sun, 2004-03-21 at 16:06, John Wells wrote:
> Guys,
> 
> I'm working on a project to help some folks out, but have run into a snag.  The app is currently written in Java but runs almost solely on Windows.  They have recently identified a need to control a scanner from the application...i.e., initiate scan requests, read scan data, etc.
> 
> Anyone know if this is possible without writing custom Win32 code and using JNI?  Are there libraries out there that support this sort of thing?  They are willing to choose one type of scanner and standardize on it, if this is possible, or if there is a scanner maker that provides an java api.
> 
> Thanks very much for your time and help.
> 
> John
> 
> 
> <