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,
|
One answer
![]()
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
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.