I am currently creating a website, and I need to integrate barcode scanner on it. The website is build with HTML and CSS. I want to have a live stream barcode scanner. When you go to the website I want the clients to be able to scan the barcode and then to show the image of an item that they have scanned. So, can you tell me how to integrate barcode scanner on the website and how to make it show the image of the scanned item.
Asked
Active
Viewed 3,642 times
-1
-
do you have a online database ? – Madhawa Priyashantha Nov 26 '16 at 17:10
-
You seem to be asking for very general advice here, without having done much research or consideration on your own. Perhaps I'm wrong. What have you done so far to solve this problem? Have you researched any types of scanners? – Phrogz Nov 26 '16 at 17:17
-
scanner is just like keyboard .it will input bar code – Madhawa Priyashantha Nov 26 '16 at 17:21
1 Answers
2
You can read input from barcode scanner using a java application (or any language of your choice) locally.
For e.g. following explains reading from barcode scanner using java
Barcode Scanner implementation on Java
Once you read in java, you can use websockets to send data to web app. Since websockets are bi-directional, no page refresh will be required and as data comes on socket your web application can respond.
I have created similar application using firebase for web sockets.

Community
- 1
- 1

SaiNageswar S
- 1,203
- 13
- 22