I am using sites and wish to display an image in one of my pages. The image is a salesforce document. I have no troubles displaying static resources fine. I have set the permissions on the images to be externally available.
(just image related code..)
visualforce code:
<img src="{!Image}"/>
Controller code:
string Image { get; set; }
public string getImage() {
List<Product2> productImage = new List<Product2>();
productImage = [SELECT Image__c FROM Product2];
return productImage[0].Image__c;
}
On firebug inspection I have noticed it is getting the URL of the image fine but it can't display it. Any ideas?