docs: public static byte[] toByteArray(File file) throws IOException {
      FileInputStream in = null;
      try {
        in = new FileInputStream(file);
        return readFile(in, in.getChannel().size());
      } finally {
        if (in != null) {
          in.close();
        }
      }
    }