Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Operating document scanner from JSP page

Thread view: 
John F. - 29 Oct 2005 22:44 GMT
If a user has a need to scan a document and upload it, is it possible
for the client computer to operate an attached TWAIN scanner directly
via a jsp page (server from a jboss app server)?  If anyone has crossed
this before, I'd love some advice.
Andrew Thompson - 31 Oct 2005 03:57 GMT
> If a user has a need to scan a document and upload it, is it possible
> for the client computer to operate an attached TWAIN scanner directly
> via a jsp page (server from a jboss app server)?  

You can do anything from a JSP that you can achieve from plain
old vanilla HTML.  So ..no.

> ..If anyone has crossed this before, I'd love some advice.

Code some pages in HTML to learn that, before doing too
much more JSP development.
Roedy Green - 31 Oct 2005 04:13 GMT
>If a user has a need to scan a document and upload it, is it possible
>for the client computer to operate an attached TWAIN scanner directly
>via a jsp page (server from a jboss app server)?  If anyone has crossed
>this before, I'd love some advice.

Presumably you can get at the twain driver from C++ and you have docs
and a driver to do that.  So some of your JNI choices are:

1. write a Java wrapper around every Twain function and do your work
from Java.

2. write a custom getDocument in C++ and invoke it is Java. It is not
general purpose.

3. Invent a higher-level interface for Java, pass the parms to C++ and
do the lower level twain stuff there.

My preference would be for (3) unless it turned out that Twain was
higher level than I would expect.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.