title: How to download a file with Play Framework 2.0
body: <p>I'm using Play Framework 2.0.3 to create an application which delivers Excel files that should be downloadable by the user. </p>
  
  <pre><code> response().setContentType("application/x-download");  
   response().setHeader("Content-disposition","attachment; filename=tradeLogTest.xlsx");  
  </code></pre>
  
  <p>but,how to get the outputstream from <code>response()</code>？tks</p>