Scenario -
User has a website which connects to Salesforce.com using the Soap API (enterprise.wsdl).
User is querying for a rich text area custom field which is used to upload images.
For instance, here is a SOQL Query where Resolution__c is rich area text field used to upload images -
SELECT Resolution__c FROM myArticle WHERE ArticleNumber= '000001' AND PublishStatus='Online' AND IsLatestVersion = true AND Language='en_US'
Issue -
The above API query result is an html img element (with src) to the actual image, which resides on Salesforce internal servers.
When the user accesses this record on the portal, images do not display.
When the user logins in Salesforce and refreshes the portal page then the images appear.
Both allow you to get the actual body of the document via the API query call. Read about this API query call and review the resources relating to Salesforce Knowledge
2) If you were doing this with Articles in Salesforce, articles can be retrieved via the REST API.Once this is done, you would need to then take the returned img src from your API query call, and substitute the domain there with the public site domain name.
So, if your force.com site access url is:
You'll change your img src in example provided:
FROM (internal access only)
TO (Public site access)
http://mySite.force.com/servlet/rtaImage?eid=<ka0....>&feoid=<00N....>&refid=<0EM.....>
000385938

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.