Convert Outlook.Attachment to Byte() array

S

Steller

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.
 
D

Dmitry Streblechenko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top