Convert Byte Array to image and display in Razor View

后端 未结 3 356
执念已碎
执念已碎 2020-12-01 01:43

I am using EF 4.1 Code First and for the sake of simplicity, let\'s say I have the following Entity class:

public class Person
{
    public          


        
3条回答
  •  自闭症患者
    2020-12-01 02:05

    Like this:

    Person Image
    

    You need Url.Action and not Html.Action because you just want to generate an url to the GetImg action. Html.Action does something entirely different.

提交回复
热议问题