How to convert InputStream to virtual File
Something like this should work. Note that for simplicity, I’ve used a Java 7 feature (try block with closeable resource), and IOUtils from Apache commons-io. If you can’t use those it’ll be a little longer, but the same idea. import org.apache.commons.io.IOUtils; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; public class StreamUtil { public static … Read more