Reputation: 9408
I have to develop a system that generates barcodes that will be printed and was wondering if there's a limit to the number of characters of a barcode? I intend to make this using PHP, also would it be better in some way to use QR codes?
EDIT
I want to do this barcodes for a system that will stor different types of shoes but since there are lots of variations to the shoes I require some more characters, but I think I can use hexadecimal numbers to create the barcodes (not sure if this is possible I'm looking into it)
Upvotes: 2
Views: 9274
Reputation: 154543
All barcodes have some limit on the number of characters (or, most commonly, digits) they can represent - you wouldn't expect any kind of barcode to hold an infinite amount of data, would you? ;)
There are many kinds of barcodes, some even have variable lengths.
Emitting barcodes is not as simple as you may think, you'd probably have to:
QR Codes and Semacodes are two-dimensional, this makes it harder to scramble the data they hold and I'm almost sure they are not regulated, but they are also a bit harder to generate.
Some more information about what (and why) you want to do would be helpful, otherwise you probably won't get any decent answers.
Some food for thought:
Upvotes: 4
Reputation: 522076
Of course there's a limit on the number of characters. Normal barcodes can usually encode somewhere around 12 digits or a handful of bits of data. Two dimensional codes can typically store a few thousand bytes of data. This all depends on the type of barcode/matrix code you choose. And this most likely depends on who will read these codes.
Here's an overview: http://en.wikipedia.org/wiki/Barcode#Types_of_barcodes
Upvotes: 3