public String encodeBase64(String value){
  return Base64.encodeBase64String(value.getBytes());
}

public String encodeBase64 ( String value ) { return Base64 . encodeBase64String ( value . getBytes ( ) ) ; }
support method to encode a string to base64
