Hi Antony,
What type of Java api your using..?I am suggesting some jar files.
itextpdf-5.5.5.jar
jxl.jar
this jar working.and check this code
javax.activation.DataSource dataSource = new ByteArrayDataSource(pdfFile, "application/octet-stream"); | |||
MimeBodyPart bodyPartPDF = new MimeBodyPart(); |
bodyPartPDF.setDataHandler(new DataHandler(dataSource)); |
Regards,
Durga Rao.