I have written a SharePoint core solution with C# which gets the URLs of user pictures and should download them.
The URL I get is correct. The URL structure is like:
But if I try to download the picture, I get a
Http 401 Unauthorized exception.
Does someone know how to fix this? Do I have to set additional permissions in SharePoint to access the user pictures?