Click here to Skip to main content
15,888,202 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do i convert image into QR Code in c# ?

What I have tried:

I have converted image into base64 string then tried converting into QR Code. but it fails due to storage size ?
Posted
Updated 30-Aug-16 21:56pm
Comments
Mehdi Gholam 13-Aug-16 7:18am    
QR codes are images, decoding them is something else.

Start here : ZXing.Net - Home[^]
 
Share this answer
 
Comments
ridoy 13-Aug-16 15:22pm    
sure, a 5.
ZXing is a great option indeed as @Mehedi Gholam suggested.
This could be in the list too: Open Source QRCode Library[^]

A few other great alternative are described here:
Free c# QR-Code generator - Stack Overflow[^]
 
Share this answer
 
Comments
Mehdi Gholam 14-Aug-16 0:26am    
5'ed
fails due to storage size ?
Probably yes. I think you should change your question to "what is the max length of a string that a QR code supports".

You can refer to wikipedia[^].

C#
Numeric only	7,089	3⅓	0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Alphanumeric	4,296	5½	0–9, A–Z (upper-case only), space, $, %, *, +, -, ., /, :
Binary/byte	2,953	8	ISO 8859-1
Kanji/kana	1,817	13	Shift JIS X 0208


A base64 string is used for encoding an image. If the image size is big, the length of the string may be greater than the limitation supported by QR code. Therefore, my suggestion is that don't convert a base64 string to QR code! No matter which SDK you use, ZXing, Dynamsoft Barcode Reader and so on, you may fail to encode the string.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900