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')}"/>

Answered by Sahil Malhotra on October 3, 2020

Add your own answers!

Related Questions

SSJS redirecting to wrong page

1  Asked on December 24, 2021


Updating checkbox From custom buttons

1  Asked on December 22, 2021 by user21944


Createdby cannot reference custom field?

2  Asked on December 22, 2021 by shuo-wang


Multiple input inside aura:iteration table

1  Asked on December 22, 2021 by nom


SFDX CLI is not working for any commands

1  Asked on December 22, 2021 by ysr-shk


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir