I am trying to retrieve an image from SQL Server (yes, data type is image) and display it in a view in my ASP.NET MVC app. Does anyone know how this can be done? A working example would be appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Creating a custom result is the cleanest way to handle this, here is a good example:
http://blog.maartenballiauw.be/post/2008/05/ASPNET-MVC-custom-ActionResult.aspx