Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Getting attachment contents for an event or task
RajanP
Hi,
I want to retrieve the binary contents of the Attachment to the event or task. Can somebody tell me how to get that using COM APIs? I tried to get it using IManAttachment class.
-Rajan
Find more posts tagged with
Comments
jny
The IManAttachment.Name Property returns the link to the object id which represents the actual document object. The link looks something like this:
GetDoc.aspx?nrtid=!nrtdms%3a0%3a!session%3aWS-RED%3a!database%3aWDIMAN80%3a!document%3a239517%2c1%3a&;The%20lazy%20dog;/WorkSite/icons/DOC.gif
So, if you could parse the object id, you may then get a hanle to the document object, then call GetCopy to download the file content.