title: How to handle binary data returned from barcode scanner?
body: <p>I have a 2d barcode scanner (Honeywell Xenon 1900).</p>
  
  <p>Scanning 1D barcodes is easy, as the scanner emulates keyboard events and sends plain text.</p>
  
  <p>But when I scan <a href="http://en.wikipedia.org/wiki/PDF417" rel="noreferrer">PDF417 format</a> 2D barcodes, the scanner sends binary data. How can I capture and decode this data? Some of symbols are non-printable, so scanning into a form on a web page wouldn't work.</p>