I would like to use HttpResponse.OutputStream along with ContentResult so that I can Flush from time to time to avoid using too much RAM with .Net.
But all the MVC examples FileStreamResult, EmptyResult, FileResult, ActionResult, ContentResult show a code that receives all the data in memory and goes to one of them. Also, one post suggests returning EmptyResult along with using HttpResponse.OutputStream is a bad idea. How else can I do this in MVC?
What is the correct way to organize data output from big data (html or binary) from an MVC server?
Why is EmptyResult or ContentResult or FileStreamResult coming back a bad idea?
stream model-view-controller asp.net-mvc ram asp.net-mvc-3
alpav
source share