Android Base64 Decode decodeBase64(String encodedString)

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

Description

decode Base

Declaration

public static String decodeBase64(String encodedString) 

Method Source Code

//package com.java2s;
import java.io.UnsupportedEncodingException;
import android.util.Base64;

public class Main {
    public static String decodeBase64(String encodedString) {

        byte[] byteData = Base64.decode(encodedString, Base64.NO_WRAP);
        String decodedString = null;
        try {/*w ww . ja v  a  2  s .  c o m*/
            decodedString = new String(byteData, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return decodedString;
    }
}

Related

  1. decode(String str)
  2. decode(String s)
  3. decode(String str)
  4. fromBase64(String data)
  5. decodes(String base64)
  6. decoderBase64File(String base64Code, String type)
  7. decode(String data, OutputStream out)
  8. decode(Reader reader, OutputStream out)
  9. decode(char c)