I want to send a Pdf as an e-mail attachment (I am using the JavaMail API ). I have the Pdf (generated by jasper) as an byte[].
byte[]
public InputStre
The constructor you used is for parsing a mime part from the transport.
Your second example should work out right. You may consider