64bit - TWAIN/WIA implementation for JAVA -
i working on application(java applet) interacts scanner. understand need twain library or wia library make work in windows. not sure differences of two? trying use library:
jar file link broken got here. http://rsbweb.nih.gov/ij/plugins/twain-scan.html
and dlls here: http://sourceforge.net/projects/twain-dsm/?source=dlp
but, not detect source. here error log:
i on 64bit machine. had success?
twain specification long follow , haven't found resources on wia implementation.
any help/pointers/resources appreciated.
use same bit mode
for twain device control in java, all components need in same mode. i.e. jre, twain dsm (source manager), , twain driver (scanner driver) all need 32-bit or 64-bit. no mixing.
the default installation of 64-bit windows contains 32-bit mode of twain dsm. , you've downloaded 64-bit dsm. it's scanner's driver 32-bit , why cannot found.
you have 2 options:
keep 64-bit.
- use 64-bit twaindsm.dll.
- make sure jre/jdk 64-bit.
- make sure scanner has 64-bit driver.
my scanner doesn't have 64-bit driver available, tested 64-bit configuration using 64-bit "virtual scanner" , worked.
keep 32-bit (recommended)
- use 32-bit twaindsm.dll.
- make sure jre/jdk 32-bit.
- use scanner's 32-bit driver (probably default).
you can download 32 , 64 bit twain virtual scanners here.
note: mention jdk because if you're running code ide may pointing different jre to system default. true story, happened me.
Comments
Post a Comment