function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AhuiAhui 

Can we make static resources in Force.com

I have a problem in static resources.

My picture is nothing in Force.com

The code is <apex:image url="{!$Resource.Blackberry}"></apex:image>  

 

Any idea?

 

 

regard

 

ahui

Best Answer chosen by Admin (Salesforce Developers) 
ShamSham
Check if the Cache-Control of the static resource is marked as public

All Answers

JavajJavaj

Try to give direct url path of the pic in static resource. like this...

 

<apex:image value="https://na6.salesforce.com/resource/1248089131000/hand"/>

 

you can get this url by clicking the "Click here to view this file"  in static resource.

 

 

 

Message Edited by Javaj on 07-21-2009 10:59 AM
ShamSham
Check if the Cache-Control of the static resource is marked as public
This was selected as the best answer
BulentBulent

Saravanan,

 

it's not the best practice hardcoding urls on your page. 

Message Edited by Bulent on 07-21-2009 09:33 AM
AhuiAhui

Thank's sham

You idea will create a picture in static resourcer 

 

excellent