It's all about the answers!

Ask a question

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


0
2
Srihari Surabhi (155) | asked Jun 03 '14, 11:05 a.m.
 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,

One answer



permanent link
Eric Jodet (6.3k5111120) | answered Jun 05 '14, 7:43 a.m.
JAZZ DEVELOPER
 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

Your answer


Register or 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.