Here you can find the source of base64decodeString(String inputString)
Parameter | Description |
---|---|
inputString | the base64-string |
public static String base64decodeString(String inputString)
//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)); } }