+ Start a Discussion
Priyanka ChandrakanthPriyanka Chandrakanth 

Static Resources


I have uploaded a jpeg image as static resource to refer in my visualforce page. However, it doesn't display the images, instead it shows as given below. Any help is appreciated! Thanks in advance.

User-added image
Just wonder how did you refer to this image in your Visualforce Page. If the Image is called theImage in the Static Resource, you can refer to it using <apex:image value="{!$Resource.theImage}">, or try <apex:image url="{!$Resource.theImage}">.
Priyanka ChandrakanthPriyanka Chandrakanth
Hello Yuchen,

Thank you very much for you response. I was not specifying the path to sub folder in my zip file, that caused this issue.