decoder Base64 File - Android File Input Output

Android examples for File Input Output:Base64

Description

decoder Base64 File

Demo Code


//package com.java2s;

import java.io.FileOutputStream;

import android.util.Base64;

public class Main {

    public static void decoderBase64File(String base64Code, String savePath)
            throws Exception {
        byte[] buffer = Base64.decode(base64Code, Base64.DEFAULT);
        FileOutputStream out = new FileOutputStream(savePath);
        out.write(buffer);//from  w w w. j  av a  2s .  c  om
        out.close();
    }
}

Related Tutorials