title: Spring OutputStream - download pptx with IE
body: <p>I use this Java code to download files from a web application:</p>
  
  <pre><code> @RequestMapping(value = "/filedownloads/filedownload/{userid}/{projectid}/{documentfileid}/{version}/", method = RequestMethod.GET)
   public void filesDownload(final @PathVariable("userid") String userId, final @PathVariable("projectid") String projectId,
          final @PathVariable("documentfileid") String documentFileId, final @PathVariable("version") String version,
          final HttpServletResponse response) throws IOException, BusinessException {
  
      ...
  
      final String fileName = "filename=" + documentFile.getFileName();
      final InputStream is = new FileInputStream(filePath);
      response.setHeader("Content-Disposition", "inline; " + fileName);
      IOUtils.copy(is, response.getOutputStream());
      response.flushBuffer();
  }
  </code></pre>
  
  <p>if I will download a pptx- file I get the following IE- page: </p>
  
  <p><a href="https://i.stack.imgur.com/nEKXP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nEKXP.png" alt="opend pptx in IE"></a></p>
  
  <p>What I want to do is to open the downloaded file in Powerpoint.
  My question now would be if there is a header setting in order to open this file with the right application (in this case Powerpoint)</p>