Save and get binaries of attachments

  • Thread starter Thread starter Vinayakc
  • Start date Start date
V

Vinayakc

Hi,

I am going to write Addin which provides the facility to the user to
select the mail and as soon as when he clicks the command button of our
addin it will send internet header information and binaries of the
selected mail to some URL by using winhttp apis.
Please suggest some good ideas for desing.
Main bottlenecks are :

1. For getting the binaries of the attachment we have to store that
attachment to some temporary location. Can i get binaries of the
attachment without storing it on my local machine.
2. I am not able to release resources in the thread Can some one please
tell me the exact procedure to do so??

I know Dmirty and his friends can give some good suggestions on this
group.

Thanking you in advance.
regards
Vinayakc
 
1. If you are using OOm or CDO 1.21, you must work with the files, there is
not way to access the attachment data directly. You need to use Extended
MAPI (or Redemption - see Attachment.AsArray) for that.
2. I am not sure what you mean.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks Dmitry.
I am now storing attachment as file on my local disk. I am not using
extended MAPI so I can not use AsArray method.

The second problem was my mistake only. Now i overcame that prob.


Thank you very much again.

regards
Vinayakc
 
Back
Top