Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When fetching user profile data using CSOM, we are able to get the PictureURL property. However, when we attempt to display it, we're given the generic 'Image Not Found' image.

Initial (brief) investigation led me to this article: http://www.wictorwilen.se/sharepoint-2013-enabling-cross-domain-profile-pictures

Which seems to suggest that we're attempting to download the image from across a different domain, and SharePoint 2013 does not allow this by default.

The article provides a fix, but this seems to only apply to the on-premise version of SP2013. Office 365 version does not have that cmdlet installed/enabled.

What is the O365 way to do this?

share|improve this question

1 Answer 1

You should use the cross-domain library.

Here is the article on MSDN : http://msdn.microsoft.com/en-us/library/fp179927.aspx

Look at the next steps on the bottom of the article for more samples.

This one seems to solve your issue : http://msdn.microsoft.com/en-us/library/fp161183.aspx

share|improve this answer
    
That looks like it's using a Sandbox Solution (deprecated).. isn't it? –  Kieren Johnstone Apr 29 '13 at 15:28
    
Also note we get the URL of the profile image, it's just the image won't display in an iframe. I can't see how I can get an IMG tag to use the cross-domain library...? –  Kieren Johnstone Apr 30 '13 at 7:21
    
No this is for an App for SharePoint 2013, which isn't deprecated. Have you tried it? –  ggobbe Apr 30 '13 at 9:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.