Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PeopleManager.SetMyProfilePicture method

SharePoint 2013

Uploads and sets the user profile picture.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
public void SetMyProfilePicture(
	Stream picture
)

Parameters

picture
Type: System.IO.Stream

The binary content of an image file.

Pictures in BMP, JPEG, and PNG formats of up to 5 million bytes are supported. A user can only upload a picture to their own profile.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.