Android Base64 Decode decodeBase64(String value)

Here you can find the source of decodeBase64(String value)

Description

decode Base

Declaration

public static String decodeBase64(String value) throws IOException 

Method Source Code

//package com.java2s;
import java.io.IOException;

import android.util.Base64;

public class Main {
    public static String decodeBase64(String value) throws IOException {
        if (!isEmpty(value)) {
            return new String(Base64.decode(value, Base64.DEFAULT));
        }//from w w  w.  ja va2 s.com
        return "";
    }

    public static boolean isEmpty(String value) {
        return value == null || value.trim().equals("")
                || value.length() == 0;
    }
}

Related

  1. decodeBase64(String src)
  2. decode(String base64)
  3. decode(String data)
  4. decode(String str)