docs: public static final byte[] readAllBytes(InputStream is) throws IOException
      {
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          byte[] buf = new byte[4096];
          int rc = is.read(buf);
          while (rc != -1)
          {
              baos.write(buf, 0, rc);
              rc = is.read(buf);
          }
          return baos.toByteArray();
      }