To retrieve the image file that supplies a person's photo to a profile, use the image link returned in the entry document.
You can retrieve profile photos for any person in your organization. You will still have to authenticate when you make the request if the server is set up to force all traffic to use SSL. See Authenticating requests
for information about how to authenticate the request.
To retrieve an image file from a profile, complete the following steps:
1. Get the service document for the person's profile. See Retrieving the Profiles service document
2. From the service document, get the URI for the profiles feed which is specified in the href attribute of the collection element and use it to get the profiles feed for the user.
3. In the returned feed, find the link where the rel attribute has the value "http://www.ibm.com/xmlns/prod/sn/image" .../>. Alternatively, use the URI specified in the "Request Details" table below.
4. Use this link to send a GET request to retrieve the image file.
You will need a REST client that supports a binary stream of the media file you are trying to retrieve.
The output of this operation is a binary image file.