cancel
Showing results for 
Search instead for 
Did you mean: 

PDF DOT Issue While send the Email in Webdynpro java using Java mail API

Former Member
0 Kudos

Hello All,

Issue:

PDF content is corrupting and fully showing dot dot .....................

Im using SAP EP 7.4, im facing above issue - While send the Email in Webdynpro java using Java mail API .

in java API We are using  UTF-8 encode type:

Please share your ideas.

Regards,

Antony.A

Accepted Solutions (0)

Answers (2)

Answers (2)

vdurgarao09
Contributor
0 Kudos

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.

vijay_kumar49
Active Contributor
0 Kudos

code plz