views:

2270

answers:

3

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?

+1  A: 

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: http://www.chestysoft.com/ximage/default.asp.

/mp

mauriciopastrana
+4  A: 

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 https://jna.dev.java.net/ to call my old free 'EZTwain Classic' DLL (google for eztw32.dll)

Spike0xff
+3  A: 

Great solution with working Java applet example: http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/index.php

regis