code: public static long copy(File file, OutputStream outputStream) throws IOException
    {
      Params.notNull(file, "Input file");
      return copy(new FileInputStream(file), outputStream);
    }
docs: Copy source file bytes to requested output stream. Note that output stream is closed after transfer completes,
  including on error.
  
  @param file source file,
  @param outputStream destination output stream.
  @return the number of bytes processed.
  @throws FileNotFoundException if <code>file</code> does not exist.
  @throws IOException bytes processing fails.
  @throws IllegalArgumentException if input file or output stream is null.