Author |
|
JerseyMike Newbie
Joined: 02 August 2006 Location: United States
Online Status: Offline Posts: 13
|
Posted: 19 September 2006 at 8:11am | IP Logged
|
|
|
Is there a way to convert a MailBee.Mime.Attachment to a filestream object without having to save the attachment to a physical file and then read it into a filestream object?
Ideally, I would like to go straight from the attachment or exposed bytearray into a FileStream object.
Thanks,
Mike
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 19 September 2006 at 9:08am | IP Logged
|
|
|
You can use GetData method of Attachment class which returns attachment data as byte array. You can learn more about this method at the following topic of MailBee.NET Objects documentation:
Attachment.GetData Method ()
There you can also find a sample that shows how to use this method.
Best regards,
Andrew
|
Back to Top |
|
|