Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

414
Views
How to create and parse Tag, Length, Value (TLV) in JavaScript or java and encode it in Base64

The QR code fields shall be encoded in Tag-Length-Value (TLV) format with the tag values specified in the “Tag” column of the adjacent table in the image below.

The TLV encoding shall be as follows:

Tag: the tag value as mentioned above is stored in one byte Length: the length of the byte array resulted from the UTF8 encoding of the field value. The length shall be stored in one byte. Value: the byte array resulting from the UTF8 encoding of the field value.

This image describe my problem:

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can generate the required hashes by using this library here.

String qrBarcodeHash = QRBarcodeEncoder.encode(
    new Seller("شركة تجريبية"),
    new TaxNumber("312345678901233"),
    new InvoiceDate("2021-11-18T18:40:34+03:00"),
    new InvoiceTotalAmount("2.30"),
    new InvoiceTaxAmount("0.30")
);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!