With FileStreamResult, how is the MemoryStream closed?
The FileStreamResult will do that for you. When in doubt always check the code, because the code never lies and since ASP.NET MVC is open source it’s even more easy to view the code. A quick search on Google for FileStreamResult.cs lets you verify that in the WriteFile method the stream is correctly disposed using … Read more