1

I used the android vision sample for scanning PDF417 barcode on the South African driver license. For decoding the information I need to pass the byte array to another library. But I can get only get a barcode.rawValue that is a String.

I am trying to obtain bytes[] from the string using barcode.rawValue.getBytes() but this returns an array which is not working with the decoding library.

I need an analogue of Pdf417MobiScanData.getBarcodeRawData().getAllData().

Thank you.

jtlz2
  • 7,700
  • 9
  • 64
  • 114
ivbar
  • 51
  • 6

1 Answers1

3

Found solution:

byte[] rawLicenseCard = barcode.rawValue.getBytes(StandardCharsets.ISO_8859_1);
ivbar
  • 51
  • 6