Skip to Main Content

New to Java

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!

Java Mail - reading an attachment

807598Sep 14 2006 — edited Sep 18 2006
Hey guys I am working through the Java Mail Tutorial and am trying to read an attachment using the code given in the tutorial but get a class expected error at:
Multipart mp = message[].getContent();
Does anyone know what I am doing wrong? Oh and by the way, message[] is the inbox using the code:
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
Message message[] = folder.getMessages();
any help is greatly appreciated, Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Sep 14 2006
10 comments
2,070 views