Not using the Outlook Object Model or CDO 1.21. <plug>Redemption (url below) exposes Attachment.AsArray property which returns/set the attachemnt data as a variant array</plug>
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
"Steller" <Steller[ at ]discussions.microsoft.com> wrote in message news:C91414F8-75B4-4925-9E27-664D7271E926[ at ]microsoft.com...
[Quoted Text] > Is there a way to convert an attachment to a byte array without saving it > to > a directory first and then reading it into a stream? I would like to > convert it in code and save straight to the database skipping the > SaveAsFile > part. > > I'm developing a VSTO outlook add-in for outlook 2003 SP2.
|