If you upload image as static resource with static resource name as "MyCompanyLogo",then you can access it like this
<apex:image url="{!$Resource.MyCompanyLogo}" width="50" height="50"/>
Example:
Visualforce Page:
<apex:page>
Here is your Company Logo <br/>
<apex:image url="{!$Resource.MyCompanyLogo}" width="250" height="250"/>
</apex:page>
Output:
<apex:image url="{!$Resource.MyCompanyLogo}" width="50" height="50"/>
Example:
Visualforce Page:
<apex:page>
Here is your Company Logo <br/>
<apex:image url="{!$Resource.MyCompanyLogo}" width="250" height="250"/>
</apex:page>
Output:
No comments:
Post a Comment