im use mvc core2 .and get imge profile and show img src and store sessionStorage browser iam use Tempdata[""] and get image jquery but show
"system,byte"
dont show any binary
this code
TempData["img"] = user.LoginUserInfo.Picture as byte[];
html code
var img = '@TempData["img"]';
sessionStorage.setItem('imguser', img);
$('#img').attr('src', "data:image/png;base64," + sessionStorage.getItem("imguser"));