xloem - 2015-07-25

Hi,
Binary data is working with mercurial head fine for years now. It doesn't work in the source tarball though.
It was output on stdout in your example: "ãèT" is the binary data from the barcode. You can redirect this to a file the same way you redirected the output of dd, with the '>' operator.
Unfortunately zbar assumes you want the data in UTF-8, so to recover the original bytes exactly you can use iconv:

zbarimg --raw rand-1k.png | iconv -f UTF-8 -o ISO-8859-1 > outputfile

zbar adds a single character (the linebreak) to every barcode decoded.