Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Convert attachment to filestream? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JerseyMike
Newbie
Newbie


Joined: 02 August 2006
Location: United States
Online Status: Offline
Posts: 13
Posted: 19 September 2006 at 8:11am | IP Logged Quote JerseyMike

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 View JerseyMike's Profile Search for other posts by JerseyMike
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 19 September 2006 at 9:08am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide