You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Scott <sc...@minutestopost.com> on 2004/11/15 21:58:10 UTC

[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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


RE: [email] ByteArrayDataSource

Posted by Eric Pugh <ep...@upstate.com>.
It seems like byte[] would be simpler right?  Save a layer of translation?
Of course, that might just move the translation inwards..  Please file a bug
so we don't forget about this...

Eric

> -----Original Message-----
> From: Scott [mailto:scott@minutestopost.com]
> Sent: Monday, November 15, 2004 11:17 PM
> To: Jakarta Commons Developers List
> Subject: Re: [email] ByteArrayDataSource
>
>
> 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:scott@minutestopost.com]
> >>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: commons-dev-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [email] ByteArrayDataSource

Posted by Scott <sc...@minutestopost.com>.
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:scott@minutestopost.com]
>>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: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


RE: [email] ByteArrayDataSource

Posted by Eric Pugh <ep...@upstate.com>.
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:scott@minutestopost.com]
> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org