piderman314 / bardecoder

Detect and decode QR Codes, written in 100% Rust.
MIT License
268 stars 34 forks source link

Is there a convenient way to return the raw bytes of decoding? #38

Closed 1ooper closed 2 years ago

piderman314 commented 2 years ago

No because it doesn't really make sense. Any QR code's raw bytes are meant to be decoded to text and/or numbers in a specific way. The only thing you could realistically do with the raw bytes is decode it yourself, but I'm not sure why you would want to do that?

1ooper commented 2 years ago

No because it doesn't really make sense. Any QR code's raw bytes are meant to be decoded to text and/or numbers in a specific way. The only thing you could realistically do with the raw bytes is decode it yourself, but I'm not sure why you would want to do that?

Thank you for your reply. I want a offline device to communicate through QR code. Sometimes, a message lenth is over the capability of QR codes, especially with long BigInt types unless BigInt is converted to raw bytes. That's when I want to the raw bytes of the decoding result.