We are using the JavaMail API to send e-mail, but we area facing
some problems.
We have a Word document (in memory, it�s not in a file) in a
ByteArrayOutputStream and want to e-mail it. The problem is that the
JavaMail API has a DataHandler class and its construtor doesnt receive a
bytearray. Instead it receives a (Object,String) or a (FileDataSource).
I could transform the ByteArrayOutputStream into String, but how can
i convert its bytes in into MIME ?
Another doubt is what MIME type should I use for my Word document
(text/htlm, application/doc, ...)
Can someone give some clue on how to solve this problem or tell me
if we are in the right path ?
Thanks,
jk
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html