How do I get a raw input stream of the message content?

John Zukowski

The getInputStream() method returns the content based upon the Content-Transfer-Encoding header. Prior to the 1.2 API, there was no easy way to get the raw content. The 1.2 version of the API introduces the getRawInputStream() method to get the raw form of the content from the MimeMessage or MimeBodyPart class.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact