Forums Register Login

Extracting Attachment from the mail using Java Mail API

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Is your problem specifically that you are having trouble extracting an image attachment, but you can successfully extract other types of attachment?
Hey cool! They got a blimp! But I have a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2073 times.
Similar Threads
Adding a css template to java mail
Problem with AWT image while sending email thru java
Reading .msg files in an email as attachment
retrive image
Commons email
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:47:07.