469,299 Members | 2,069 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

Generate barcode from a string in java

Hello
I have a table of players, each player in the team should have unique barcode:



The barcode scanner returns an array of chars.
The next player_id = char++, example:
aaa
aab
aac
...
aba
aca
..
baa


Or muybe another solution?



Kr,
May 23 '09 #1
7 5765
JosAH
11,448 Expert 8TB
Both UPC and EAN barcodes encode just sequences of digits; which encoding do you have in mind?

kind regards,

Jos
May 23 '09 #2
Thanks but i am sorry to say I don't understand your response.
I asked what should I do to generate a barcode on basis of an array of chars?

All I know is when I take the barcode reader and scan a barcode, the output is like this in (player_id)



Kr,
F.
May 24 '09 #3
JosAH
11,448 Expert 8TB
@freethinker
I don't think that barcode reader gives your (16 bit or utf-8) chars; it just gives you bytes. Read those bytes and use them as a unique id.

kind regards,

Jos
May 25 '09 #4
@JosAH
Thank you, that is what I also do, the string or bytes I get as return value when I read a barcode with barcode reader, I use it as unique id.

I am now looking for a good working solution on how to generate a barcode which gives you the code (bytes for example) you have in the table as unique id.
May 25 '09 #5
JosAH
11,448 Expert 8TB
@freethinker
I don't understand what you want then; you have a unique key (a byte[] array) produced by your barcode reader; you have your data that belongs to that key so what other key do you want?

kind regards,

Jos
May 25 '09 #6
@JosAH
true
@JosAH
true @JosAH
a mathod to produce a barcode (some graphics you can print out for the player).

thank u

kr,
e
May 26 '09 #7
JosAH
11,448 Expert 8TB
@freethinker
That's easy; there are numerous packages available that can print barcodes for you; google for "print barcode Java" and see for yourself.

kind regards,

Jos
May 27 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by CHANGE username to westes | last post: by
4 posts views Thread by Tom | last post: by
2 posts views Thread by Breda Photo Fair | last post: by
2 posts views Thread by angus | last post: by
2 posts views Thread by chris_gpf1 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.