A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Convert Outlook.Attachment to Byte() array



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 26th 06, 07:46 PM posted to microsoft.public.outlook.program_addins
Steller
external usenet poster
 
Posts: 1
Default Convert Outlook.Attachment to Byte() array

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.
Ads
  #2  
Old July 26th 06, 09:48 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Convert Outlook.Attachment to Byte() array

Not using the Outlook Object Model or CDO 1.21.
plugRedemption (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" wrote in message
...
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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array of outlook items....HELP!! WhytheQ Outlook and VBA 5 June 26th 06 01:52 PM
Convert pre 2003 Outlook PSTs Raji A Outlook - General Queries 5 March 29th 06 05:38 PM
Download free program for array phone codes correction Victor Bilous Outlook - General Queries 5 February 1st 06 09:18 PM
Download free program for array phone codes correction Victor Bilous Outlook - Using Contacts 0 January 31st 06 07:20 AM
problem with multi byte characters display Ganesh Outlook - General Queries 0 January 12th 06 03:33 PM


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.