Questions tagged [barcode]

This tag should be used for questions on how to generate, decode, or use barcodes in programs.

A barcode is an optical machine-readable representation of data, which shows data about the object to which it attaches.Originally, barcodes represented data by varying the widths and spacings of parallel lines, and may be referred to as linear or 1 dimensional (1D). Later they evolved into rectangles, dots, hexagons and other geometric patterns in 2 dimensions (2D). Although 2D systems use a variety of symbols, they are generally referred to as barcodes as well. Barcodes originally were scanned by special optical scanners called barcode readers, scanners and interpretive software are available on devices including desktop printers and smartphones.

(source http://en.wikipedia.org/wiki/Barcode)

enter image description here

3063 questions
38
votes
6 answers

QR Code encoding and decoding using zxing

Okay, so I'm going to take the off chance that someone here has used zxing before. I'm developing a Java application, and one of the things it needs to do is encode a byte array of data into a QR Code and then decode it at a later time. Here's an…
LandonSchropp
  • 10,084
  • 22
  • 86
  • 149
35
votes
4 answers

Reading barcodes with android

Hi I am developing an application for the android htc hero. I am looking into ways of using the inbuilt camer to read 2D barcodes and extract the string returned from the barcode. I have only recently begun working with the android sdk but I do have…
user233354
  • 391
  • 1
  • 4
  • 6
35
votes
8 answers

Print barcodes from web page to Zebra printer

We're trying to print barcodes from a web page to our Zebra printer. I'm wondering if there's a way to print them using the printer's own font perhaps using web fonts or if I knew the font name used? I have been trying to use php barcode generators,…
user1447134
  • 497
  • 1
  • 5
  • 8
31
votes
7 answers

QR Code generation in ASP.NET MVC

Is there a .NET API that generates QR Codes such as this one? I'd like to display these on pages that I expect my users to print out.
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
30
votes
5 answers

Barcode Generation from within iOS App

I want to take a numerical string and generate a simple barcode that can be read by any scanner. I can already use the camera and read a barcode but now I would like to generate a barcode. Does anyone know of an sdk that will allow me to do this,…
Raymond
  • 477
  • 2
  • 5
  • 15
30
votes
1 answer

How to Generate Barcode using PHP and Display it as an Image on the same page

I want to Generate Bar code (any type) using PHP I am having a variable where i store a code so just i want to generate a barcode of this and echo the barcode image where i want ..... please help
sudo
  • 906
  • 2
  • 14
  • 32
29
votes
17 answers

How do I validate a UPC or EAN code?

I need a C# .NET function to evaluate whether a typed or scanned barcode is a valid Global Trade Item Number (UPC or EAN). The last digit of a bar code number is a computer Check Digit which makes sure the bar code is correctly composed. GTIN Check…
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
27
votes
1 answer

Most efficient linear barcode to store a GUID

I have a system that I'm working on at the moment that requires users to log into the system, and the client wants to use a barcode scanner and cards to keep prices down. (Yes username and password cheaper, but she wants a card type solution so she…
Matthew Baker
  • 2,637
  • 4
  • 24
  • 49
26
votes
8 answers

Generating and reading barcode

I've built an e-shopping website for a big company which has country offices. What i want to do is the following Generate barcode via PHP before sending package to country offices of company When the item will be arrived to country office,…
heron
  • 3,611
  • 25
  • 80
  • 148
26
votes
10 answers

Code Golf: Code 39 Bar Code

The challenge The shortest code by character count to draw an ASCII representation of a Code 39 bar code. Wikipedia article about Code 39: http://en.wikipedia.org/wiki/Code_39 Input The input will be a string of legal characters for Code 39 bar…
gwell
  • 2,695
  • 20
  • 20
25
votes
3 answers

Encoding Spotify URI to Spotify Codes

Spotify Codes are little barcodes that allow you to share songs, artists, users, playlists, etc. They encode information in the different heights of the "bars". There are 8 discrete heights that the 23 bars can be, which means 8^23 different…
Peter Boone
  • 1,193
  • 1
  • 12
  • 20
23
votes
5 answers

How to generate barcode from a string using C#?

Is it possible to generate barcode from a string using c#? Is there any builtin classes for generating barcodes in asp.net? Is it possible to detect a barcode printer connected with a system?
ACP
  • 34,682
  • 100
  • 231
  • 371
22
votes
6 answers

Enhanced iOS barcode scanner library?

We're creating an iOS app that basically scans badges at events and collects contact info. We're looking for an iOS library that can read not only the number of the barcode, but also any additional information that's included (contact info). Does…
user695250
  • 221
  • 1
  • 2
  • 3
21
votes
2 answers

ZPL - how can we increase width of ^BC (Code 128) bar code

Am doing a formatting of barcode label. We are using Zebra Programming Language , ^BC (Code 128) bar code As i increase the size of ^FD Field Data , the barcode width is increasing. But how can i print a broader bar code for a fixed small length…
zod
  • 12,092
  • 24
  • 70
  • 106
21
votes
2 answers

Is there a good free barcode scanning SDK for non-autofocus cameras on iOS?

I understand there are many questions similar to this on StackOverflow, but this question is very specific so I'm not looking for the typical "Zbar" answer here. I use the Zbar SDK for barcode scanning (UPC, EAN) on devices with autofocus cameras.…
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194