Here you can find the source of fromBase64(final String encoded)
Parameter | Description |
---|---|
encoded | The String to decode. |
public static String fromBase64(final String encoded)
//package com.java2s; //License from project: Apache License import java.util.Base64; public class Main { /**//w w w .ja v a 2s . c o m * Decode a {@link String} from its base64 representation. * * @param encoded * The {@link String} to decode. * @return The decoded {@link String}. */ public static String fromBase64(final String encoded) { final byte[] bytearray = Base64.getDecoder().decode(encoded); return (new String(bytearray)); } }