You need to sign in to do that
Don't have an account?
Arun_Kotha
Image tag
I'm trying to use a zip resourse in image tags.
The name of the zip file is slideshow.zip. The unzipped folder is called slideshow and it contains a folder called images. Inside the images folder there is an image called 1.jpg.
The directory in my system looks like this : slideshow/images/1.jpg
In the zip it is like this : slideshow.zip>>images>>1.jpg
Now I'm using an image tag like this :
<apex:image url="{!URLFOR($Resource.slideshow, 'images/1.jpg')}" width="600" height="400"/>
This tag shows a broken image in the page. Please help me to fix this. Thanks
I tried this and it worked perfectly for me.
<apex:image url="{!URLFOR($Resource.slideshow,'images/1.jpg')}" />
Please make sure that the "slideshow" in the above tag is the name of the Static resource and not the zip file you uploaded.
Let me know if it worked for you or not.
"Error: Static Resource named slideshow does not exist. Check spelling"
I didn't get this message. It is displaying a broken image. :(
Send me a mail, lets connect by TeamViewer
My Email : atul.kumar.gupta@accenture.com