library icon indicating copy to clipboard operation
library copied to clipboard

getRawBytes returns null

Open xulihang opened this issue 2 years ago • 6 comments
trafficstars

I am trying to get the bytes of barcodes but it returns null.

The comment says that it returns raw bytes encoded by the barcode, if applicable, otherwise null. I wonder when it is applicable.

xulihang avatar Apr 21 '23 03:04 xulihang

Can you attach the barcode?

werthdavid avatar Apr 21 '23 08:04 werthdavid

This one: Special_0280

xulihang avatar Apr 21 '23 08:04 xulihang

The library is able to correctly read that given Code-39, I manually made a unit-test with that image (I cropped it though). Do you use a camera to scan that? Or the image file? It is quite a complex code...

werthdavid avatar Apr 25 '23 09:04 werthdavid

I need to read the image file. The content of the PDF417 is stored as bytes so I need to use getRawBytes.

xulihang avatar Apr 25 '23 09:04 xulihang

If I use a PDF417Reader instead of a MultiFormatReader I can read and recognize it

werthdavid avatar Apr 27 '23 13:04 werthdavid

Stale issue message

github-actions[bot] avatar Apr 29 '24 09:04 github-actions[bot]