Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IDocument.GetContentAsInputStream Method 

Returns A Stream for reading the contents of the current version of the document.

Stream GetContentAsInputStream();

Return Value

A Stream which can be used to read the document contents.

Remarks

WARNING: It is essential the the client call Close() on the input stream once finished reading from it. It is recommended to put a call to Close() in a finally block.

Note: To use any document upload/download functionality, including this method, you must install WSE 2.0 (http://msdn.microsoft.com/webservices/building/wse/).

Exceptions

Exception TypeCondition
CollaborationException The method call resulted in an error.
InvalidOperationException The document has not yet been inserted or has already been removed.
SoapException There is a communication problem during the execution of the remote method call.

See Also

IDocument Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace