Menu

#71 Aztec: Binary Data

1.0
closed
nobody
None
2017-10-06
2017-10-03
No

Hi

I am trying to encode binary data into an aztec barcode however I cannot get it to work.

The command I am using to generate the barcode is as follows
zint --binary --barcode=92 -i test.bin

I noticed that the eci mode defaults to 3, however i belive in the case of raw binary this should be 0?
zint --binary --eci=0 --barcode=92 -i test.bin

The hex that gets generated (according to http://www.onlinebarcodereader.com/)

a) c2 90 0a
b) 43 56 57 4b 4f 0a

Thanks for any help,
John

1 Attachments

Related

Tickets: #71

Discussion

  • John Mortlock

    John Mortlock - 2017-10-03

    I have also attached the full data I am trying to encrypt, running this through onlinebarcodereader.com gives very different results

     
  • John Mortlock

    John Mortlock - 2017-10-03

    Further to this I have found that certain ascii characters are causing problems as well, if I try to encode a simple JSON object.

    {"string": "test"}

    zint --barcode=92 -i test.ascii

    Reading it back

    {"string172SR 8=Õ

     
  • Robin Stuart

    Robin Stuart - 2017-10-04

    Hi John,

    Your sample data showed up not one but three bugs in my code which I hope I have now fixed. Please have a look at the latest code and let me know if this solves the problems.

    openbarcodereader.com does not work with raw binary data, it tries to convert to Unicode. I suggest testing with bctester or something similar:

    http://www.bctester.de/en/home.html

    Sample encodes of your data are attached. Thank you for taking the time to document this problem.

    Robin.

     
  • John Mortlock

    John Mortlock - 2017-10-04

    Robin,

    Thanks for your prompt work in resolving these issues! I can confirm that it is correctly generating barcodes for me.

    What are the chances of getting these Aztec fixes bundled into a new 2.6.2 release?

    Thanks again,
    John

     
  • Robin Stuart

    Robin Stuart - 2017-10-05

    Thanks John,

    I agree that this fix is worth pushing out a new version, so the chance is 100%, but it may be a couple of weeks before this happens.

    Robin.

     
    • John Mortlock

      John Mortlock - 2017-10-05

      Awesome, a couple of weeks works well for me anyway

      Thanks Again

      John

      On Thu, Oct 5, 2017 at 4:08 PM, Robin Stuart g3rrk@users.sf.net wrote:

      Thanks John,

      I agree that this fix is worth pushing out a new version, so the chance is
      100%, but it may be a couple of weeks before this happens.

      Robin.

      Status: open
      Milestone: 1.0
      Created: Tue Oct 03, 2017 04:03 AM UTC by John Mortlock
      Last Updated: Wed Oct 04, 2017 09:45 PM UTC
      Owner: nobody
      Attachments:

      Hi

      I am trying to encode binary data into an aztec barcode however I cannot
      get it to work.

      The command I am using to generate the barcode is as follows
      zint --binary --barcode=92 -i test.bin

      I noticed that the eci mode defaults to 3, however i belive in the case of
      raw binary this should be 0?
      zint --binary --eci=0 --barcode=92 -i test.bin

      The hex that gets generated (according to http://www.
      onlinebarcodereader.com/)

      a) c2 90 0a
      b) 43 56 57 4b 4f 0a

      Thanks for any help,
      John


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/zint/tickets/71/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #71

  • Robin Stuart

    Robin Stuart - 2017-10-06
    • status: open --> closed
     

Log in to post a comment.