Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

any scanning tools

 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,
please anyone he know any components or tools used for scanning image from scanner?

my scenario: I need to retrieve image from scanner then save it on any content management solution, For now I need to know any component or tools used in JSF or JSP to can do that. Then I will research about how save it on CM.


 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot scan using JSP, JSF, or, indeed any HTTP server-based technology, Java or otherwise. Presuming the scanner is attached to someone's desktop system, there's no support whatsoever in HTTP for scanners. Aside from the purely technical issues, taking control of remote hardware - whether it's scanners, printers, or disk drives is a major security risk.

The simplest, but most annoying way to do what you want is to use a scanning utility on the desktop and scan to a file, then upload the file using the HTML file upload facility. A somewhat trickier variant of that technique would be to attach a plug-in to the user's browser that ran the scanner and posted the data to the webapp. A Java variation on that idea would be a Java applet, but since applets are normally forbidden to access hardware or files, you'd need a signed applet.

I don't know offhand about any Java scanner APIs. At the OS level, Linux has a standardized interface called SANE, Windows has one whose name I forget, and Intel even supplied a set of BIOS extensions back when GUIs were less common. Quite possibly someone has wrapped all this up into a unified Java API, perhaps even a JSR, but I'd have to do a web search to find out.
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim for your replay.
I find many API can you used it to connective with scanner, but I guessed so far no any JSR for this issue.

This API may help our problem but anyone has more ideas.

1) Morena.
2)JTWAIN and JSane

Twain technique used in windows.

I'm not sure for that but all these API is used Java Applet. Now I'm in gathering information phase and hope to find the best way to walking in it.

 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TWAIN is the Windows API whose name I could not remember.

TWAIN runs only on Windows, SANE is a Unix/Linux thing. It might be available under CYGWIN, but that's asking a bit much just to get a "universal" scanner interface.

Morena, on the other hand does seem to be an universal scanner interface, since it claims to support both TWAIN and SANE. I'm taking it for granted that MacOS is supported by SANE, but if that's a concern, you might want to verify it.
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim,
Actually I need to develop this application to compatible with Windows/TWAIN. May will add feature in future to support SANE, for now I'm looking for tools to make comparison between them especially help us in WEB-BASED application (J2EE) and what may will used in this project. Then I will select the better for whole cases. Still I found this tools:

1) Morena.
2) Dynamic Web Twain.
3) JTWAIN.


I hope to see more tools. I don't know If we can used JavaFX to do this operation and embedded it in web? cause really the JavaFX faster than Applet.

I don't read enough about JavaFx, but when I see it seems like the applet.
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me, "web based" normally means World Wide Web, which - unless otherwise qualified indicates that anyone anywhere should be able to use it.

If you only support TWAIN, that won't include me, since I don't use Windows except for when my job allows no alternative, and I never use Windows where my security or my money is an issue. If you don't want me to be a user of your app, that's fine, but I do make business decisions based on whether and how well a web site works for me - it cost one major automobile manufacturer any chance of selling me a new car because they assumed that all web browser can run Flash, and neither my mobile device nor my 64-bit desktop systems had that capability.

It's dangerous to "know" things. You may "know" that applets are slow, but since I've spent the last 6 months supporting an applet-based medical suite, I tend to "know" differently. At one time, Java was slow, but no longer - the only real delay is that massive JRE download needed to start running applets.

As far as Flex goes, it has potential, but not many computers have it installed. I don't even know if my systems can run it or not. I believe you already have to have a JRE installed and then Flex goes on top of that, so in terms of applets being "slow" because of the downloading that has to occur to get that initial JRE installed, FLEX would be even that much slower.
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Tim,
I like to use my application, but actually this application will used internal usage.

I didn't understood what did you means in FLEX? I ask about JavaFx.

 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moayad Abu Jaber wrote:Dear Tim,

I didn't understood what did you means in FLEX? I ask about JavaFx.



It means I'm going senile. I meant JavaFx. Sorry.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!