docs: public static InputStream convertOutputStreamToInputStream(OutputStream outputStream) {
      byte[] data = ((ByteArrayOutputStream) outputStream).toByteArray();
      return new ByteArrayInputStream(data);
    }