Reputation: 16959
This works
@Html.EditorFor(model => model.Data, new { htmlAttributes = new { @class = "form-control" } })
This next line doesn't like "model=>model.Data"
<img src="data:image;base64,@System.Convert.ToBase64String(model => model.Data)" height="80" />
Upvotes: 0
Views: 193
Reputation: 16959
@if (Model.Data != null)
{
<img src="data:image;base64,@System.Convert.ToBase64String(Model.Data))" height="80" />
}
Upvotes: 1