Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Can we Encode an Image with QR code? If anyone knows please help...I'am able to encode text successfully...but i'm not able to encode an image as maximum size is 3kb...
Posted

You dont. Its that simple.

You should really be encoding the URL to the image on a web server.
 
Share this answer
 
Comments
Cenarjun 24-Jun-14 7:23am    
My requirement is not to encode the URL.I have to encode the image only.Are there any image hosting servers to which we can upload the image from C# code and encode that link? any idea Dave
What you need to do:
1. use Base64 to convert your image to a String
2. encode the String. Note: the Maximum character storage capacity is 4,296 http://en.wikipedia.org/wiki/QRcode[^]
If the string length of the Base64 data is greater than 4296, you will fail to encode with QR code.
 
Share this answer
 
Comments
Cenarjun 24-Jun-14 7:33am    
I'am not able to encode 1 kb image also with base64....can you share me the code if u hv encoded an image with QR?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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