You need to sign in to do that
Don't have an account?

How to display image in vf page from attachment.
Hi
I have created a page which should capture all details and generate a pdf.everything is ok but i need to dispaly image in my pdf page uisng vf page.how its possible.

I have created a page which should capture all details and generate a pdf.everything is ok but i need to dispaly image in my pdf page uisng vf page.how its possible.
<apex:page sidebar="false" showHeader="false" renderAs="PDF" standardController="TigerTuesday__c" > <html xmlns='http://www.w3.org/1999/xhtml'> <head> <style type="text/css" media="print"> </style> <apex:stylesheet value="{!$Resource.PDFDocumentStyle}" /> </head> <c:pdfheaderfooter type="header" position="center"> <img src="{!$Resource.TigerTuesdayLogo}" ></img> </c:pdfheaderfooter> <c:pdfheaderfooter type="footer" position="right" showPageNumbers="true"> <table width="100%" border="0" > <tr> <td> <img width="200%" height="100%" alt="logo" src="{!$Resource.TigerTuesdayLogo}" ></img> </td> </tr> </table> </c:pdfheaderfooter> <table> <apex:outputPanel rendered="{!IF(TigerTuesday__c.Issue__c==null,false,true)}"> <tr> <td><b>Issue </b></td> <td>:{!TigerTuesday__c.Issue__c} <b>|</b> {!TigerTuesday__c.Issue_Date__c} </td> </tr> </apex:outputPanel> </table> <table > <apex:outputPanel rendered="{!IF(TigerTuesday__c.Name==null,false,true)}" > <tr> <td style="font-size:25px;font-family:rebuchet MS,Arial,Helvetica,sans-serif;color:Orange;">{!TigerTuesday__c.Name}</td> </tr> </apex:outputPanel> </table> <table > <apex:outputPanel rendered="{!IF(TigerTuesday__c.Paragraph__c==null,false,true)}" > <tr> <td >{!TigerTuesday__c.Paragraph__c}</td> </tr> </apex:outputPanel> </table> </html> </apex:page>
You can use <apex:Image> tag like :
Go to documents and open the save file and further click on view file and copy the url like below and paste in visualforce page
https://mobilytejs-dev-ed--c.ap2.content.force.com/servlet/servlet.FileDownload?file=01528000001uEUf
if solve your problem
mark solved
Thanks & Regards
Jasveer Singh