Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to read a mime file

843834May 22 2009 — edited May 22 2009
Hi gurus,
is possible to read the attachments of a mime file ? The file is located in the file system and after read the content of the file and store it in a string I would retrieve the content like this :

MimeMultipart mm = MimeMultipart(theMimePartString) ;
BodyPart bp = mm.getBodyPart(1);

but the body part is null here.

Anyone has suggestions on how to do this?

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2009
Added on May 22 2009
1 comment
149 views