I am trying to get the picture of a user programatically:
It goes like:
UserProfileManager manager = new UserProfileManager(SPServiceContext.GetContext(site));
UserProfile profile = manager.GetUserProfile(currentUser.GetBinaryId());
string picUrl = userProfile["PictureUrl"].Value.ToString();
Now I mapped the picture property of the user profile to a property in the Active Directory. I uploaded a picture through the My Profile site of the user. I ran the User Profile Synchronization and the User Profile Quick Synchronization jobs. I see
that the picture is loaded into the My Settings page of the user too. BUT through the code I can not get the picture only after a min of 6-7 hours.
Why is this happening? Is there another job I should run or is this normal behaviour?
View Complete Post