How to turn an image into a qr code with Zxing?

Asked

Viewed 1,809 times

1

I’m developing an android app capable of generating and reading qr codes, the application already encodes and decodes strings, but now I need to do this with images.

I’ve tried some paths like transforming the image into an array of bytes and then transforming it into a string in Base64 format, but the stirng gets too long.

I have tried to decrease the image size to, consequently, decrease the string size, however, the image is very small, so far I could only after decreasing the image size to less than 2KB but it is very small and without quality.

Is there any way to turn an image into a qrcode using the zxing library?

Thanks in advance!

  • Uploading the image somewhere and using the URL’s QR Code is not an option for you?

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.