Android Utililty Methods Base64 File Decode

List of utility methods to do Base64 File Decode

Description

The list of methods to do Base64 File Decode are organized into topic(s).

Method

voiddecodeToFile(String filePath, String base64)
decode To File
byte[] bytes = decode(base64);
byteArrayToFile(bytes, filePath);
voiddecodeToFile(String filePath, String base64)
decode To File
byte[] bytes = decode(base64);
bytesToFile(bytes, filePath);
StringdecoderBase64FileWithFileName(String base64Code, String fileName)
decoder Base File With File Name
String sdStatus = Environment.getExternalStorageState();
if (!sdStatus.equals(Environment.MEDIA_MOUNTED)) { 
    Log.i("TestFile",
            "SD card is not avaiable/writeable right now.");
    return "unavailable";
File file = new File("/sdcard/myDoc/");
if (!file.exists()) {
...