+ Start a Discussion
arosysarosys 

how to show images in force.com sites?

Hi

 

I have a customised object Merchandise having a rich text field in which i am storing image.

How to show that image on force.com sites.

 

Thanks

 

Vinita_SFDCVinita_SFDC

Hello,

 

Normally we will query the FullPhotoUrl and display in VF page.

Similarly like this:
<apex:image value="{!User.FullPhotoUrl}" height="120px" width="120px"/>

For detailed example please refer following link: http://salesforceapexcodecorner.blogspot.in/2012/05/user-photo-not-visible-on-forcecom-site.html

arosysarosys

Thanks for the reply.

 i had done it , i searched and it was simple.

 

<apex:outputField value="{!prod.Image__c}"/>