code: public void write(File file) throws IOException {
          try (InputStream inputStream = getInputStream()) {
              IoUtils.copy(inputStream, file);
          }
      }
docs: Saves this file item to a given file on the server side.
  
  @param file
  @throws IOException