Getting Java and TWAIN to play together nicely

14,393

Solution 1

Calling the TWAIN API from anything except C/C++ is going to be a major pain, it relies entirely on complicated C structures that you have to replicate exactly in memory. If you need only fairly basic scanning, you could use something like GitHub site to call my old free 'EZTwain Classic' DLL (google for eztw32.dll)

Solution 2

hm. I might have some homebrew available for it somewhere I could check, but for now: At our company, we basically gave up on this issue and implemented an (unfortunately win only) ActiveX solution: Site Link

Share:
14,393
jacobko
Author by

jacobko

I do Java. And PHP. And anything else that needs to be done.

Updated on June 05, 2022

Comments

  • jacobko
    jacobko almost 2 years

    I'm working on building an app to scan directly from TWAIN scanner to a Java applet. I'm already aware of Morena and JTwain, but they cost money. I need free. I could re-invent the wheel with JNI, but it seems like someone has probably already done this as a FOSS tool.

    Is anyone familiar with a free tool that can get a Java applet to read directly from a TWAIN scanner?

  • flysakura
    flysakura about 12 years
    FYI, Flash is not the only solution to support IE 64 bit and other browsers. Dynamic Web TWAIN supports IE 32/64, Firefox, Chrome on Windows and Mac OS X.