Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   get attachment file data (http://www.outlookbanter.com/add-ins-outlook/82064-get-attachment-file-data.html)

sd[_2_] November 20th 08 02:02 PM

get attachment file data
 
hello
I'm using VSTO SE Outlook add in for Outlook 2007 using vb.net.I need
to get attachment details -
MIME content type,content subtype & the file data itself. I used
redemption to get content type,subtype using field value &H370E001E of
safemailItem attachment.But was not able to get attachment file data.
Is there any way to get attachment file data without saving the file &
then getting its data?

thanks

Ken Slovak - [MVP - Outlook] November 20th 08 02:39 PM

get attachment file data
 
The actual binary data for the attachment is stored in PR_ATTACH_DATA_BIN.
That property is a PT_BINARY.

However, that may be encoded in some way so the usual method is to save out
the attachment to the file system and work with it from there.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
hello
I'm using VSTO SE Outlook add in for Outlook 2007 using vb.net.I need
to get attachment details -
MIME content type,content subtype & the file data itself. I used
redemption to get content type,subtype using field value &H370E001E of
safemailItem attachment.But was not able to get attachment file data.
Is there any way to get attachment file data without saving the file &
then getting its data?

thanks



sd[_2_] November 21st 08 02:46 PM

get attachment file data
 
Thanks Ken!
I've still one problem -I was able to get content type & subtype for
existing mail attachment.But Is there any way to find out the content
type & subtype of outgoing mail attachment.I need to retrive this
info. from outgoing mail & send it.
thanks again for reply

Ken Slovak - [MVP - Outlook] November 21st 08 04:18 PM

get attachment file data
 
Sure. Just trap the item.Send() event and in that event handler first save
the item being sent, then access its Attachments collection and proceed the
same way.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
Thanks Ken!
I've still one problem -I was able to get content type & subtype for
existing mail attachment.But Is there any way to find out the content
type & subtype of outgoing mail attachment.I need to retrive this
info. from outgoing mail & send it.
thanks again for reply



sd[_2_] November 25th 08 12:57 PM

get attachment file data
 
Thanks Ken


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com