在mvc视图中显示图像

时间:2010-09-15 11:29:58

标签: asp.net-mvc

您好我正在使用MVC,我想显示System.Drawing.Image对象中可用的图像。

请给我一些解决方案。

1 个答案:

答案 0 :(得分:2)

return new FileContentResult(your.Image, [*ContentType*] )

常见内容类型:image / gif,image / jpeg,image / png ...

相关问题