import org.apache.commons.io.IOUtils;
String path = "E://temp/"+System.currentTimeMillis()+multiFile.getOriginalFilename();
OutputStream out = new FileOutputStream(new File(path));
IOUtils.copy(multiFile.getInputStream(), out);
InputStream in = new FileInputStream(new File(path));