resulttype

Using Stream Result with Struts2

I am attempting to use a Stream Result to return an image from a struts2 application. I seem to be having problem with configuring the action. Here is the configuration: <result name="success" type="stream"> <param name="contentType">image/jpeg</param> <param name="inputName">inputStream</param> <...

What's the difference between the four File Results in ASP.NET MVC

ASP.NET has four different types of file results: FileContentResult: Sends the contents of a binary file to the response. FilePathResult: Sends the contents of a file to the response FileResult: Returns binary output to write to the response FileStreamResult: Sends binary content to the response by using a Stream instance Those d...