I am trying to convert a zip file into a File object on java. I need to create a method which accepts a zip file and return an unzipped file back. I do not want to write the physical file anywhere in hard disc (not even a temporary file) . Is it possible?
File convert(File zipFile) {
//do conversion without physical file
return unzip file;
}
I have tried https://www.baeldung.com/java-compress-and-uncompress and able to unzip but it is writing into a physical file only.