tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
 Tools and Libs > Ostermiller Utilities > Base64 Decode File

Base64 Decode File 

Ostermiller Java Utilities contain various components such as CSV parsing, Base64 Encoding, MD5 digest, String and Exec Helper classes. This requires the library ostermillerutils-1.08.01.jar to be in classpath. The following example shows decoding a file encoded in Base64 format.

File Name  :  
/OSTERMILLER_UTILS/abcd.encoded.txt 

File Name  :  
com/bethecoder/tutorials/ostermillerutils/Base64DecodeFileTest.java 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
   
package com.bethecoder.tutorials.ostermillerutils;

import java.io.File;
import java.io.IOException;

import com.Ostermiller.util.Base64;

public class Base64DecodeFileTest {

  /**
   @param args
   @throws IOException 
   */
  public static void main(String[] argsthrows IOException {

    File fIn = new File("abcd.encoded.txt");
    File fOut = new File("abcd.decoded.txt");
    Base64.decode(fIn, fOut);
  }

}
   

It gives the following output,
File Name  :  
/OSTERMILLER_UTILS/abcd.decoded.txt 


                    Print

   



Books Recommendation

 
 
bl  br