Re: How to send an image to the client using JavaMailAPI
Posted By:
Anonymous
Posted On:
Monday, June 3, 2002 12:12 AM
Yeah I got it.ByteArrayDataSource is the class in which we can pass InputStream & contenttype to the constructor.
And it was possible to send image from memory.
Message msg = new MimeMessage(session);
msg.setDataHandler(new DataHandler(new ByteArrayDataSource(InputStream input,String "image/gif");
Transport.send(msg);
Thanx
Srihari