Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Convert Outlook.Attachment to Byte() array

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Convert Outlook.Attachment to Byte() array
Steller 26.07.2006 18:46:02
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.
Re: Convert Outlook.Attachment to Byte() array
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 26.07.2006 20:48:43
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.


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net