Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is it possible to get user profile photo using REST or oslc?

 Hi,

I need to show the RTC profile pic in my app.
I got the photo url from the feed

https://locahost:9443/ccm/oslc/projectareas/_SYdSoNeOEeOo0_tviuWiCw/rtc_cm:members

which looks like:
<rtc_cm:User rdf:resource="https://localhost:9443/jts/users/Srihari.Surabhi">
<rtc_cm:userId>Srihari.Surabhi</rtc_cm:userId>
<dc:title>Srihari Surabhi</dc:title>
<rtc_cm:photo rdf:resource="https://localhost:9443/ccm/resource/content/_HC4m4espEeOo0_tviuWiCw"/>
</rtc_cm:User>

How can I retrieve this content programatically using AJAX or any other means..what would be request and response types.

When I hit this url in browser I can see the image, but I guess the response content is HTML.

(or)

Is there any other way to get RTC profile picture..
Thanks,

2

0 votes



One answer

Permanent link
 Hello,
I think Ralph's article should help you here.
http://rsjazz.wordpress.com/2013/01/08/maintaing-user-photos-with-the-plain-java-client-libraries/

Thanks,
Eric

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,934
× 7,494
× 1,700
× 515
× 478
× 383

Question asked: Jun 03 '14, 11:05 a.m.

Question was seen: 6,894 times

Last updated: Jun 05 '14, 7:43 a.m.

Confirmation Cancel Confirm