Android Question QR code scanning to get a picture

yzhy-mail

Member
Dear all !
I know there are methods in our forums to get Text with scanning the QR code.
But,I want to make my picture into QR code, and after scanning the QR code, my picture comes out. How to do it?
Thank you !
 
Solution
QR-Code is limited in amount of bytes. Probably a bad idea to try to put an image there.
Your Image have to be bas64-encoded and put into QR-Code. After reading you have to Base64-Decode it to get the bytes from which you can create a Bitmap.

Upload the Image to your server, put the downloadurl of this image into the QR-Code and download the Image after you get the URL from the QR-Code.

DonManfred

Expert
Licensed User
Longtime User
QR-Code is limited in amount of bytes. Probably a bad idea to try to put an image there.
Your Image have to be bas64-encoded and put into QR-Code. After reading you have to Base64-Decode it to get the bytes from which you can create a Bitmap.

Upload the Image to your server, put the downloadurl of this image into the QR-Code and download the Image after you get the URL from the QR-Code.
 
Upvote 1
Solution

Johan Schoeman

Expert
Licensed User
Longtime User
 
Upvote 0

yzhy-mail

Member
Thank you Johan Schoeman for your reply !
My picture is more than 3K.
But you idea is very great also! Thank you!
 
Upvote 0
Top