Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Extracting Attachment from the mail using Java Mail API  RSS feed

 
Santhana Lakshmi.S
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I want to extract the image attachement from the email received using JavaMail API.
From one article i came to know how to extract the message from the receive email and also able to read the content of the text file attached.
Can anyone tell me how to extract the image attached in the email and save that in the local disk using java mail API
thanx a lot
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the JavaMail on java.sun.com, which is linked on the J2EE FAQ wiki page. It has a section on receiving attachments.
 
Paul Clapham
Sheriff
Posts: 22531
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your problem specifically that you are having trouble extracting an image attachment, but you can successfully extract other types of attachment?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!