Hi,
I use it to attach dynamically generated content (which often ends up as a byte[]) to an email.
The attach() methods in MultipartEmail and the EmailAttachment class want either a File, URL, or DataSource. The ByteArrayDataSource class saves someone the time of implementing their own DataSource for this purpose. Of course, an attach() method that accepts a byte[] would work well also.
Scott
Eric Pugh wrote:
That is quite possible! Can you explain the use case for ByteArrayDataSource? It seemed like a terrible hack, but maybe it was a terribly cool idea?
-----Original Message----- From: Scott [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 8:58 PM To: Commons-Dev Subject: [email] ByteArrayDataSource
Hi,
I noticted that the ByteArrayDataSource class was removed from commons-email. I found it to be a useful addition to commons-email...has it moved to a different commons project?
The Turbine javadoc for this class says that org.apache.turbine.util.mail.ByteArrayDataSource is deprecated and that org.apache.commons.mail.ByteArrayDataSource should be used instead. Is it possible that the class remained deprecated when moved from Turbine to commons-email, and that its removal was accidental?
Thanks, Scott
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
