barcode value change randomly

43 views
Skip to first unread message

kaz

unread,
Aug 25, 2022, 10:48:31 PM8/25/22
to zxing
Hello,
I am generating the barcode using code_128
but i could not corect result in specific number.
And change result randomly.
if some one know this problem how did you fix this?

testdata////
"0QP142-001"
"0QP431-001"
"0QN964-001"

int width = 100
int height = 50

code///
Writer writer = new MultiFormatWriter();
BitMatrix = writer.encode(content,BarcodeFormat.code_128,width,height);
BufferedImage image = MatrixToImageWriter.toBufferedImage(bitMatrix);
ImageIO.writer(image,"png",new File(output));

Reply all
Reply to author
Forward
0 new messages