title: Can I download an Excel file made from a memory stream off an ASP.NET page?
body: <p>I have an ASP.NET page where a user provides an ID, and then we pull some data from the DB and put it into an Excel spreadsheet. I would like to create the Excel file in memory and then allow the user to download the file. I could create a file on the server, and then delete it afterwards, but it seems unnecessary. Depending on error handling I could potentially orphan a file with that approach, etc.</p>
  
  <p>Is something like this possible? Or do I need to use a file stream?</p>
  
  <p>On a side note, I'm using <a href="http://epplus.codeplex.com/" rel="nofollow">EPPlus</a> as an API (quick plug for it).</p>