SyntaxFix
Write A Post
Hire A Developer
Questions
To decode:
byte[] image = Base64.getDecoder().decode(base64string);
To encode:
String text = Base64.getEncoder().encodeToString(imageData);