Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding a Byte[] in a QR code #73

Open
softwaremagico opened this issue May 24, 2024 · 2 comments
Open

Encoding a Byte[] in a QR code #73

softwaremagico opened this issue May 24, 2024 · 2 comments

Comments

@softwaremagico
Copy link

softwaremagico commented May 24, 2024

There is any way to use the QR encoder for using a byte array? I am not an expert on QR codes, and I do not know if this is feasible or not.

Currently, the QrCodeConfig accepts qrCodeText as a String. That is fine if you want to put an URL, or some text data. But in some cases, I want to pass data as a byte array. For example if the data is encrypted between two applications.

Note: that converting a byte[] to a String is not an option as the byte[] will be modified in some cases. An option will be to convert the byte[] to Base64, but this increase the size of the QR.

@SimonScholz
Copy link
Owner

Hi @softwaremagico,

I will have a look at this as soon as possible.
I really appreciate your ideas and the proposal of new enhancements.
I'll check out if zxing can help us in that regard, but I am also considering getting rid of the zxing dependency. So zxing should not be a blocker for this feature to come.
I'll give an update here once I gain more insights on this topic.

@softwaremagico
Copy link
Author

Thanks for your answer. I am not sure if this is possible or not, but if it is, it will be appreciated.
Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants