code: public void setFile(File file) throws FileNotFoundException{
  		this.setInputStream(new BufferedInputStream(new FileInputStream(file)), file.length());
  		this.isUploadFile = true;
  	}
docs: Upload file as inputStream
  @param file
  @throws FileNotFoundException