moaazsidat / react-native-qrcode-scanner

A QR code scanner component for React Native.
MIT License
2.04k stars 516 forks source link

Scanning binary QR code #362

Closed ZeroByter closed 2 years ago

ZeroByter commented 2 years ago

I am trying to scan a QR-code that contains purely binary data. When it is scanned, the rawData field is filled with data that I don't recognize. (I obviously know what data to expect, I generated the binary QR code image). At first I thought the rawData field might be base64-encoded, so I decoded it but the result I got still wasn't what I expected to see.

How can I scan & interpret rawData from a QR code?

I feel like the docs don't properly explain what the output of rawData is or how to use it.

I am using version 1.5.4 of react-native-qrcode-scanner

ZeroByter commented 2 years ago

Nevermind, I figured out that it was in hex.