Sample Code:
Visualforce page:
<apex:page showHeader=”false” controller=”Sample” >
<apex:form >
<apex:pageBlock >
<apex:pageblockTable value=”{!EmpList}” var=”E”>
<apex:column value=”{!E.Name}”/>
<apex:column value=”{!E.Photo__c}”/>
</apex:pageblockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Apex Controller:
global class Sample {
public List<Employee__c> EmpList {get;set;}
public Sample() {
EmpList = [SELECT Name, Photo__c FROM Employee__c Order By Name];
}
}
Output: