Encode & decode barcode by google's zxing.