TransWikia.com

How to display static resource image in visual force component?

Salesforce Asked by DSK on October 3, 2020

I have uploaded image to static resource. i just want to display it on the visual force componet (apex:component) . i tried this way <apex:image id="theImage" value="{!$Resource.myResourceImage}" width="200" height="200"/>. but still image is not rendering in the ui.

Thanks in advance

One Answer

Hello below code is working for me Please try this

<apex:page >
<apex:image value="{!URLFOR($Resource.vfimagetest,'cats/kitten1.jpg')}"/>
</apex:page>

Answered by Sahil Malhotra on October 3, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP