/**
  * 上传到指定路径 path+fileName
  *
  * @param file
  */
 public void uploadTo(File file) {
   FileUtils.createParentPath(file.getPath());
   OutputStream outputStream = null;
   try {
     outputStream = new BufferedOutputStream(new FileOutputStream(file));
     StreamUtils.copyStream(inputStream, outputStream);
   } catch (FileNotFoundException e) {
     logger.error("File Not Found !", e);
     throw new RuntimeException(e);
   }
 }