64 encode java

Solutions on MaxInterview for 64 encode java by the best coders in the world

showing results for - "64 encode java"
Giorgio
10 Jan 2021
1byte[] encodedBytes = Base64.getEncoder().encode("Test".getBytes());
2System.out.println("encodedBytes " + new String(encodedBytes));
3byte[] decodedBytes = Base64.getDecoder().decode(encodedBytes);
4System.out.println("decodedBytes " + new String(decodedBytes));
5