Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to generate a QR Code image using JAVA. Its a legacy project so the target version of java is 1.3. Can I programatically convert a QR Code string to base 64 string or a byte array and then convert into image through java itself ?

What I have tried:

I have been converting base 64 strings that i fetch from XML to images through code itself. But I want to know is there a way to convert QR Code string to base64 string ?
Posted
Updated 12-Oct-17 22:24pm
v3
Comments
Mohibur Rashid 13-Oct-17 4:18am    
The answer is yes
GaneshRfromSpace 13-Oct-17 8:16am    
How ? Can you explain ? Is it something involving zxing ?

1 solution

A QR code string is just a sequence of bytes, like anything else in memory. So what exactly is your problem?
 
Share this answer
 
Comments
GaneshRfromSpace 13-Oct-17 8:18am    
I have trouble encoding a qr code string into base 64 string. Is it possible through any of the Java classes ?
Richard MacCutchan 13-Oct-17 10:33am    
What sort of trouble? As I already said, a QR string is just the same as any other string in Java.
GaneshRfromSpace 8-Dec-17 5:36am    
Can you provide me code examples of generating a QR code string instead of a QR code image ?
Richard MacCutchan 8-Dec-17 5:41am    
Sorry, no idea.

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