title: How to get file name and file Type using inputStream?
body: <p>guys i'm using inputStream for file Download . now i want to pass fileName and fileType into DefaultStreamedContent .now how can i find fileName and FileType using inputStream .</p>
  
  <pre><code>InputStream inputStream = new BufferedInputStream(new FileInputStream(filePath));
  fileDownload = new DefaultStreamedContent(inputStream,**fileType,fileName**);
  </code></pre>