wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes How to send gif image using java mail service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to send gif image using java mail service" Watch "How to send gif image using java mail service" New topic
Author

How to send gif image using java mail service

Srihari AVAR
Greenhorn

Joined: Apr 29, 2002
Posts: 4
Hi friends

I want to send gif image to the client over mail from a inputstream which is recieved from a servlet.Iam connecting the servlet thru a java thread and it is possible for me to store it in a file & send the mail as attachment.
But my requirement is I should not store the image in a file instead I have to send it to the client as image/gif mail.
Can anyone help me out as to what is the class & corresponding methods in the JMS with which I can do this.

Thanx in Advance
Srihari
Srihari AVAR
Greenhorn

Joined: Apr 29, 2002
Posts: 4
Yeah!!! I Found out the solution.From java.sun.com I got a class ByteArrayDataSource thru which it became possible to send gif image from memory.
Thanx
Srihari
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send gif image using java mail service