+ Start a Discussion
ArabindaArabinda 

Uploading chatter profile photo from Site

Hi,
I am trying to upload Chatter profile photo from site.I have gone through below URL.But still I am not getting how to achieve this.
Please provide some code snippet or suggestions how to achieve this.

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_ConnectAPI_ChatterUsers_static_methods.htm

Thanks
Arabinda
Marty C.Marty C.
Hello, Arabinda, my reply is late, but in case you still haven't gotten an answer yet, I've posted some sample code to Gist for a custom CommunityUserPhotoUpload component (https://gist.github.com/martyychang/f8fc64868cada37ac629). This component uses the ConnectApi.ChatterUsers.setPhoto(String, String, ConnectApi.BinaryInput) (https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_ConnectAPI_ChatterUsers_static_methods.htm#apex_ConnectAPI_ChatterUsers_setPhoto_2) method to update a user's profile photo.