Blob images appears in Visualforce Page but unable to display in renderas="pdf" form. Is this a limitation with apex? Is there any alternative solutions? Please help me out
here is the code for my page :
<apex:page controller="AccountPDF11" renderas="pdf">
<apex:repeat value="{!m1}" var="key">
<apex:pageBlock > <apex:outputText value="{!key}" />
<apex:pageBlockTable value="{!m1[key]}" var="c">
<apex:column value="{!c.name}"/>
<apex:column value="{!c.call_Date_vod__c}"/>
<apex:column value="{!c.signature_Date_vod__c}"/>
<apex:column headerValue="signature">
<apex:image value="data:image;base64,{!c.signature_vod__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:repeat>
</apex:page>
here is the code for the controller class :
public class AccountPDF11 {
Public void AccountPDF11(){}
Public Set<ID> s = new Set<ID>();
Public Map<String,List<Call2_vod__c>> xx= new Map<String,List<Call2_vod__c>>();
public Map<String,List<Call2_vod__c>> getm1()
{
for(Call2_vod__c c:[SELECT Account_vod__c FROM Call2_vod__c where Is_Sampled_Call_vod__c =true limit 4 ])
{
s.add(c.Account_vod__c);
}
for(Account p: [SELECT Name, (Select Name,signature_vod__c FROM Call2_vod__r where limit 1) from Account WHERE ID IN : s ])
{
mapProductEntity.put(p.Name, p.Call2_vod__r);
}
return mapProductEntity;
}
}