How to obtain File Path/Name from an InputStream in Java ?
You can't because the InputStream might not have been a file or path. You can implement your own InputStream that generates data on the fly
InputStream