Hi,
I have a requirement of creating webpart which will update user profile properties in SharePoint 2013. I am facing challenge with updating user profile picture.
If one has seen, in "My Site", SharePoint allows to upload a image and provide it for preview. Only when one click on save, it will be updated in SharePoint userprofile. If someone clicks on "Remove" it would be removed from preview image.
I need to create similar functionality in custom webpart. I have tried using file upload control to browse image but I am unable to upload the file from user local machine to either preview image or to Sharepoint user profile properties.
Can anyone help me with a code to upload an image from user local machine to user profile property in SharePoint 2013 using C#.
Thanks,
Rahul
Rahul Mehta SharePoint Professional