public static String encodeBASE64(String value) {
        try {
            return new String(Base64.encodeBase64(value.getBytes(StringPool.UTF_8)));
        } catch (UnsupportedEncodingException ex) {
            throw new UnexpectedException(ex);
        }
    }
public static String encodeBASE64(String value) {
        try {
            return new String(Base64.encodeBase64(value.getBytes(StringPool.UTF_8)));
        } catch (UnsupportedEncodingException ex) {
            throw new UnexpectedException(ex);
        }
    }
public static String encodeBASE64 ( String value ) { try { return new String ( Base64 . encodeBase64 ( value . getBytes ( StringPool . UTF_8 ) ) ) ; } catch ( UnsupportedEncodingException ex ) { throw new UnexpectedException ( ex ) ; } }
Encode a String to base64

@param value The plain String
@return The base64 encoded String
Encode a String to base64