Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Getting Document Contents using COM APIs
RajanP
Hi,
I want to get the document contents using COM APIs for all the versions of the document. I am able to get the Document object using "IManDocuments" interface but I am not able to get the contents of the document. Can somebody send me the code snippet for getting the document contents?
-Rajan
Find more posts tagged with
Comments
Migrateduser
You will need to check out the document to a file.
RajanP
Can you please elaborate?
Do i need to check out the file programmatically? Which APIs do i need to use for it? Do you have any code snippet?
-Rajan
RajanP
Thanks....I could get the file by using GetCopy API....
But is there any other way of getting only the binary contents of the file without downloading the contents on the local machine?
-Rajan
guido1
From memory, another option might be to use the web method "GetDocuments" to download the document as a byte stream. One of the return values of this method is an array of Document objects.
The Document object has in turn a Content property, which is defined as a byte array.
I'm not certain, but I think these web methods are only available for Worksite Web 8.2
RajanP
I am using COM APIs n not the web methods....Could you please suggest me some COM APIs?
jny
If you use the COM API's, to retrieve the content of the physical file, downloading is the only way.