Java tutorial
//package com.java2s; import android.util.Base64; import java.io.FileOutputStream; public class Main { public static void decoderBase64File(String base64Code, String savePath) throws Exception { //byte[] buffer = new BASE64Decoder().decodeBuffer(base64Code); byte[] buffer = Base64.decode(base64Code, Base64.DEFAULT); FileOutputStream out = new FileOutputStream(savePath); out.write(buffer); out.close(); } }