+ 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