DEV Community

Cover image for Let's develop a QR Code Generator, part II: sequencing data

Let's develop a QR Code Generator, part II: sequencing data

Massimo Artizzu on July 10, 2021

In the first part we've seen the basic concepts of QR codes. Now let's actively do something to generate one. Let's suppose we want to create a QR ...
Collapse
 
latestversion profile image
latestversion

I was wondering a bit about the result from the getByteData function. The "hand code" section result differs slightly from the final output. It seems to be either the length bits or the first character that differs, IIUC.

"hand code": 65, 118, 135, 71, 71 ...
getByteData: 65, 166, 135, 71, 71 ...

Maybe I missed some difference. I get 65, 118 ... so I hope that's correct :)

Collapse
 
autj profile image
AutJ

type error in the last code block
Uint8Array(26) -> Uint8Array(28)

Collapse
 
maxart2501 profile image
Massimo Artizzu

Good catch, thanks šŸ‘

Collapse
 
anurag_vishwakarma profile image
Anurag Vishwakarma

Hi AutJ, welcome to the DEV Community! I’m a moderator here, and I’m glad to have you on board. You are joining a wonderful community and to ensure that DEV is a respectful and inclusive space for developers to learn, share, and connect.

I’m sure you will do a great job to contribute positively to this community. If you ever need any assistance or advice, please feel free to reach out to me or any other moderators. We are always here to help. 😊

firstfinger.in/signup-for-devmaste...

Collapse
 
lotfijb profile image
Lotfi Jebali • Edited

Nice article and thanks for sharing with the community
Excited to read more of your writings

Collapse
 
prithulb profile image
Prithul Biswas

i didn't get the encoding. :(
h = 104 why make 65 ? why we don't cenvert [104 116 116 112 115 58 47 47 119 119 119 46 113 114 99 111 100 101
46 99 111 109 47] this array into binary..? :/