@Url.Content("~/Content/images/myimage.png")
<img src="~/Content/images/myimage.png" />
<img src= "@Url.Content(Model.ImagePath)" alt="Image" />
string base64String = Convert.ToBase64String(imageBytes);
<img src="@String.Format("data:image/png;base64,{0}", base64string)" />
转载于:https://www.cnblogs.com/HaibaraAi/p/7010696.html