1

I m using GWT as a substitute for mobile phone app`s.

Now I need an app that reads from a barcode.

Is it possible to accomplish this using GWT?

Is it possible to do though the web browser at all?

thanks for any help

yaniv
  • 152
  • 5
  • 15

2 Answers2

3

Starting with Android 3.0 and iOS6 you can capture an image from the camera using the following in your HTML:

<input type="file" accept="image/*;capture=camera">

or:

<input type="file" accept="image/*" capture="camera">

You should test to see which of these is more portable to the devices you care about.

See this answer (Android) and this answer (iOS) to other questions for more info.

You'd then have to do the image analysis server-side.

Community
  • 1
  • 1
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
0

You could use a scanner zbar for example and write the Phonegap plugin for android and iPhone. I think that's an easier approach.

Spiff
  • 3,873
  • 4
  • 25
  • 50