The easiest way to do this, in my opinion, is to return a FileStreamResult from your controller.
public FileResult GetImage() { string path = "c:\images\image.jpg"; return new FileStreamResult(new FileStream(path, FileMode.Open), "image/jpeg"); }
This is a simple implementation, but gives you a starting point for what you are trying to do.
mkchandler
source share