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