You can usually use an InputStream as suggested, but if you want to perform further operations without java in the file, for example, decrypting it with an external application, etc., you can use FileOutputStream to write this stream to the file, and then use its path as the correct path to the file. In simple words, you can undo this file on your file system.
Johnydep
source share