If you do this in Java, you can use BASE64Encoder and write to a new encoded file:
import sun.misc.BASE64Encoder;
public static void main(String[] args) throws Exception {
File inputFile = new File(yourUnencodedFile);
File outputFile = new File(yourEncodedFile);
BASE64Encoder encoder = new BASE64Encoder();
encoder.encode(
new FileInputStream(inputFile),
new FileOutputStream(outputFile)
);
and then just use the encoded output file
source
share