Here you can find the source of saveBase64Str2Disk(String base64Str, File file)
public static void saveBase64Str2Disk(String base64Str, File file) throws IOException
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import sun.misc.BASE64Decoder; public class Main { public static void saveBase64Str2Disk(String base64Str, File file) throws IOException { BASE64Decoder decoder = new BASE64Decoder(); FileOutputStream write = new FileOutputStream(file); byte[] decoderBytes = decoder.decodeBuffer(base64Str); write.write(decoderBytes);/*from ww w . j av a 2s . c om*/ write.close(); } }