Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: MemStream vs Byte array Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
adam.kozovo
Newbie
Newbie


Joined: 30 June 2023
Online Status: Offline
Posts: 19
Posted: 17 July 2023 at 1:02am | IP Logged Quote adam.kozovo

Hello
I found that to process in-memory you offer both MemoryStream and Byte() for MailMessage

Although it's much more usual for SDKs to offer MemoryStream, but please let us know if in action you found which one to be more efficient when loading a single mail message and keep it in memory for some time?

Also, while all MailMessage functions support Byte() but these 4 methods are not offering Byte() overload support:
MsgToMailMessage/MailMessagetoMsg/MsgtoEml/EmltoMsg
Thank you in advance
Back to Top View adam.kozovo's Profile Search for other posts by adam.kozovo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 July 2023 at 11:15am | IP Logged Quote Alex

Hello,

Loading message from byte array is more efficient. Overload which uses Stream (not MemoryStream, BTW) internally loads it into a byte array anyway.

Methods which process Outlook MSG support Stream only and operate differently, they don't read (or write) the message into a byte array internally.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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