If you want to present the image, add a method as a helper class or to the model itself and allow the method to convert the byte array image to a image format like PNG or JPG then convert to Base64 string. Once you have that, bind the base64 value on your view in the format
"data:image/[image file type extension];base64,[your base64 string goes here]"
The above is assigned to the img
tag's src
attribute.
The only issue I have with this is the base64 string being too long. So, I would not recommend it for multiple models being shown in a view.