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

get attachment file data



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 20th 08, 02:02 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default 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
  #2  
Old November 20th 08, 02:39 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old November 21st 08, 02:46 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default 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
  #4  
Old November 21st 08, 04:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #5  
Old November 25th 08, 12:57 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default get attachment file data

Thanks Ken
 




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
Can I convert an Outlook Data file to a text file? Peggy Outlook - Using Contacts 4 September 3rd 08 06:44 PM
PRF file problem wiht personal folders data file password protecte Groupex1 Outlook - Installation 0 November 1st 07 08:01 PM
Outlook file translators stuck on a default data file or not worki Charles griffiths Outlook - Using Contacts 2 April 23rd 07 11:50 AM
Can I replace the attachment file when double chick attachment? [email protected] Outlook - General Queries 3 August 3rd 06 04:10 PM
pst file option missing under new outlook data file dialog UncleBuckle Outlook - Installation 2 February 24th 06 11:49 PM


All times are GMT +1. The time now is 12:31 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-2025 Outlook Banter.
The comments are property of their posters.