Is there any way to create a java.io.File object from an java.io.InputStream ?
java.io.File
java.io.InputStream
My requirement is reading the File from a RAR . I am not try
Create a temp file first.
File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileOutputStream out = new FileOutputStream(tempFile); IOUtils.copy(in, out); return tempFile;