0

I have a Java web application hosted on Weblogic server. I am going to use a passport scanner(hardware) to scan a document so that when browser reach to the page, it able to display whatever text it scanned to prevent human error.

first of all, there is some dll, .jar that scanner is provided as well as C# sample code,VB.net sample code and Java sample code to interact with Scanner

What I understand is

I cannot use the jar to trigger the Scanner on Java because it is in Server side.

Solutions that i think of

  • standalone application running on background on client machine to interact with Scanner which

    • it will store the scanned text to a text file
    • xhtml will get the text from the text file
  • standalone application running on background on client machine to interact with Scanner which

    • it will display the scanned text directly on text field on browser. It is something like getElementByID and set method.
  • do it on Front end (xhtml) to call the jar on client machine.

What I have tried

I tried to call the jar from browser using JavaScript. Browser shows cross-origin security policy error and i have google it that browser will not allow to access client directory which will cause security breach.

My Question

I want to know is that my provided solution is workable? Is there others good solutions?

Thank you.

kyleeee
  • 13
  • 4
  • These articles will be helpful. [Accessing scanner at client side from a web page without applet](https://stackoverflow.com/q/34882584/9014308), [How Can I Trigger a Scanner from a Browser?](https://stackoverflow.com/q/3504231/9014308) – kunif Jan 17 '19 at 05:40
  • Hi Kunif, thank you for your information. The articles provide others useful web scanning tools but for my requirements i will need to integrate with a hardware scanner with theirs provided library. – kyleeee Jan 17 '19 at 12:24
  • A similar one exists as a conceptual specification, but there is no actual software yet. Please refer to this WS-POS and UnifiedPOS. [UnifiedPOS | Object Management Group](https://www.omg.org/retail/unified-pos.htm) Among them, a device class called CheckScanner that reads checks is considered a similar concept. – kunif Jan 17 '19 at 12:51

0 Answers0