Base64Convert.encode ( file_in, file_out)
or on command line
java Base64Convert "encode" file-in-path file-out-path
This program will insert only LF after 76 characters on each line in the output file except the last line. The last line will end in = or == as the base 64 specs stipulate.
Base64Convert.decode ( file_in, file_out)
or on command line
java Base64Convert "decode" file-in-path file-out-path
Click here to download base64.zip that contains Base64Convert.java.