Java Base64 Decode base64decodeString(String inputString)

Here you can find the source of base64decodeString(String inputString)

Description

Decodes a String which is base64 encoded.

License

Apache License

Parameter

Parameter Description
inputString the base64-string

Return

the string

Declaration

public static String base64decodeString(String inputString) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Base64;

public class Main {
    /**/*from w ww .  j  ava2 s.c  om*/
     * Decodes a String which is base64 encoded. 
     * 
     * @param inputString the base64-string
     * @return the string
     */
    public static String base64decodeString(String inputString) {
        if (inputString == null)
            return "";

        return new String(Base64.getDecoder().decode(inputString));
    }
}

Related

  1. base64decode(String string)
  2. base64decode(String strMi)
  3. base64decode(String text)
  4. base64decodebyte(String txt)
  5. base64Decoder(char[] src, int start)
  6. decode(String base64)
  7. decode(String base64Code)
  8. decodeBase64(char[] data)
  9. decodeBASE64(InputStream in, OutputStream out)