docs: public static byte[] copyToByteArray(InputStream in) throws IOException {
          ByteArrayOutputStream out = new ByteArrayOutputStream(BUFFER_SIZE);
          copy(in, out);
          return out.toByteArray();
      }