Hi,

As an another way.
How about this technique ?

1. import
import javax.mail.util.ByteArrayDataSource;
import javax.activation.DataHandler;
import javax.activation.DataSource;


2.modify
//attachment.setContent(attachmentData, "text/comma-separated-values;
charset=UTF-8");
ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource
(attachmentData, "text/comma-separated-values; charset=UTF-8");
attachment.setDataHandler(new DataHandler(byteArrayDataSource));

thanks.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.


Reply via email to