code: public static String encodeToString(byte[] src) {
          return src == null ? null : Base64.getEncoder().encodeToString(src);
      }
docs: Encodes a byte array to a base 64 string.
  @param src the byte array to encode
  @return the base64 encoded string