checked API doc again, even the administrator can update a profile pic of 
user ,also in JS the method name is same, so keep it as it is.

Thanks and Regards,
Swati Singh
_________________________________________________
Software Engineer
India Software Lab, IBM Software Group

email:swati.singh@in.ibm.com 




Bhavesh1976 <notifications@github.com> 
08/30/2013 05:25 PM
Please respond to
OpenNTF/SocialSDK 
<reply@reply.github.com>


To
OpenNTF/SocialSDK <SocialSDK@noreply.github.com>, 
cc
Swati Singh/India/IBM@IBMIN
Subject
Re: [SocialSDK] Update profile photo (#433)






In 
samples/j2ee/com.ibm.sbt.sample.web/WebContent/samples/java/Social/Profiles/UpdateProfilePhoto.jsp:
> +              void upload(HttpServletRequest request) throws 
IOException {
> +                              try {
> +                                              FileItemFactory factory = 
new DiskFileItemFactory();
> +                                              // Create a new file 
upload handler
> +                                              ServletFileUpload upload 
= new ServletFileUpload(factory);
> +                                              //get the file by parsing 
the request
> +                                              FileItem fileItem = 
(FileItem)upload.parseRequest(request).get(0);
> +                                              File file = 
convertToFile(fileItem);
> + 
> +                                              String mimetype = new 
MimetypesFileTypeMap().getContentType(file);
> +                                              String type = 
StringUtil.splitString(mimetype,'/')[0];
> +                                              // check if file is of 
type image
> +                                              if 
(StringUtil.equalsIgnoreCase(type,"image")) {
> +                                                              //Create 
ProfileService instance and call updateProfilePhoto wrapper function to 
update Profile Pic
> + ProfileService profileService = new ProfileService();
> + profileService.updateProfilePhoto(file);

Shuldnt the name of the wrapper be updateMyProfilePhoto()
—
Reply to this email directly or view it on GitHub.