public FileStreamResult GetImages(string path, int w, int h) { System.Drawing.Image image = (@"~/" + path).GetImageFromPath(w, h, true); Stream ms = new MemoryStream(image.ToByteArray()); return(new FileStreamResult(ms, "image/jpg")); }
public FileStreamResult GetImages(string path, int w, int h) { System.Drawing.Image image = (@"~/" + path).GetImageFromPath(w, h, true); Stream ms = new MemoryStream(image.ToByteArray()); return(new FileStreamResult(ms, "image/jpg")); }