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