Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

IDocument.GetContentAsInputStream Method (Int32)

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

Stream GetContentAsInputStream(
   int version
);

Parameters

version
A valid document version.

Return Value

A Stream that 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, or if the version number does not exist..
SoapException There was a communication problem during the execution of the remote method call.

See Also

IDocument Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace | IDocument.GetContentAsInputStream Overload List