You need to sign in to do that
Don't have an account?
Nishant Prajapati 10
and controller of this page is:
How to display an image on visualforce page uploaded via Rich text filed of custom object
<apex:page showHeader="false" controller="Controller004"> <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/> <style> h1{font-family: 'Oswald', sans-serif; text-decoration:none;} </style> <apex:pageBlock > <apex:pageBlockSection title="Record of avalaible Doctors"> <apex:form > <apex:pageBlockTable value="{!obj}" var="a"> <apex:column headerValue="Name"> <h1><apex:outputField value="{!a.Full_Name__c}" /></h1> </apex:column> <apex:column headerValue="Fee"> <h1><apex:outputField value="{!a.Fee__c}"/></h1> </apex:column> <apex:column headerValue="Schedule"> <h1><apex:outputField value="{!a.schedule__c}"/></h1> </apex:column> <apex:column > <apex:image value="{!a.ImageUpload__c}" /> </apex:column> </apex:pageBlockTable> </apex:form> </apex:pageBlockSection> </apex:pageBlock> </apex:page>above is code of VF page
and controller of this page is:
global class Controller004{ public List<Doctor__c> obj{get;set;} public Controller004(){ obj = [select Full_Name__c, Fee__c, schedule__c, ImageUpload__c from Doctor__c]; } }
Instead of <apex:image value="{!a.ImageUpload__c}" /> you can use
<apex:outputField value="{!a.ImageUpload__c}" />
It will display your richText Area image.
Hope this helps you!
Best Regards,
Jyothsna
All Answers
Instead of <apex:image value="{!a.ImageUpload__c}" /> you can use
<apex:outputField value="{!a.ImageUpload__c}" />
It will display your richText Area image.
Hope this helps you!
Best Regards,
Jyothsna
Hi Nishant,
Same problem here... Did you solve it ?
Thanks,
Hacene
Did you figure out any way to style image in OutPutField?