code: @Override
      protected void updateFaxJobWithFileInfo(FaxJob faxJob,FileInfo fileInfo)
      {
          //get file
          File file=fileInfo.getFile();
          
          if(file==null)
          {
              //get file name
              String fileName=fileInfo.getName();
      
              //get file content
              byte[] content=fileInfo.getContent();
  
              try
              {
                  //create temporary file
                  file=File.createTempFile("fax_",fileName);
                  
                  //write content to file
                  IOHelper.writeFile(content,file);
              }
              catch(IOException exception)
              {
                  throw new FaxException("Unable to write file content to temporary file.",exception);
              }
          }
          
          //update fax job
          faxJob.setFile(file);
      }
docs: This function stores the file in the local machine and updates
  the fax job with the new file data.
  
  @param   faxJob
  The fax job object to be updated
  @param   fileInfo
  The file information of the requested fax