Correction

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Correction

DeGuzman, Carlos
Hello,
 
    Correction on a code block I've sent...
 
  // Attach the file
  MimeBodyPart bp2 = new MimeBodyPart();
  FileDataSource fileAttachment = new FileDataSource("test.pdf");
  bp2.setDataHandler(new DataHandler(fileAttachment));
  // Correction part... follows
  bp2.setFileName(fileAttachment.getName());
  bp2.setHeader("Content-Type", "application/pdf");
  bp2 = gen.generate(bp2, SMIMEEnvelopedGenerator.RC2_CBC, "BC");
Best Regards,
Carl