FileResult returning corrupt file
I'm creating a simple controller action in ASP.NET MVC 2 (under the .NET 4.0 framework) which will resize files. I've got a controller like this (I've cut it down a bit): public ActionResult GetFile(int fileId, string fileSource) { FileInfo file = repo.FindFileById(fileId); //do some resizing string mimeType = string.Empt...