Re: How to send an image to the client using JavaMailAPI
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");