Convert Outlook.Attachment to Byte() array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
Back
Top