• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send gif image using java mail service

 
Srihari AVAR
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic