Example of Encoding a file with Base64 Encoding and then decoding it back
(Java)
By Barry Nirmal and Rohit Nirmal
Create a batch file that contains the commands given below.
When you will run this batch file, it will encode index.html into
index.html.encoded. Then
it will decode index.html.encoded into temp.html.
Make sure to set CLASSPATH and PATH correctly so that "java" command will
work.
commands to use in batch file
java Base64Convert "encode" index.html index.html.encoded
java Base64Convert "decode" index.html.encoded temp.html
pause