Jan 19, 2021 08:28 PM|valenciano8|LINK
You were right it works !
I've simplified your code hereafter :
public async Task<IActionResult> GetCurrentUserAvatar()
var current_user = await _usermanager.GetUserAsync(User);
return File(current_user.Avatar, "image/png");
So basically what I just had to do was to :
<img id="user_avatar" src="/User/GetCurrentUserAvatar"> // Yet I'm not sure that hard coding URLs is a good way to proceed