tags:

views:

41

answers:

1

Hi All ,

I am using MVC ASP 1.0 , how can i acheive the functionality done by BuildURLFromExpression method ? basically i am trying to get image from Controller thanks

A: 

return(new FileResult(pathtoimage, "image/jpeg"));

you can also do it with bytes to image, pdf etc

minus4
return new FileStreamResult(new FileStream(path, FileMode.Open), "image/jpeg");
minus4