Obtains read access, via an input stream, to the content data of a ContentTransfer content element associated with this document or annotation. The content data is fetched from the server. The Content Platform Engine will not automatically close the stream after access has finished; unless you want the stream to remain open, your application should close the stream after it has finished reading the content data. An error occurs if the element parameter specifies an invalid index, no content elements exist on this document or annotation, or the content element is not a ContentTransfer object.

Namespace:  FileNet.Api.Core
Assembly:  FileNet.Api (in FileNet.Api.dll)

ToggleSyntax

Visual Basic (Declaration)
Function AccessContentStream ( _
	element As Integer _
) As Stream
C#
Stream AccessContentStream(
	int element
)
Visual C++
Stream^ AccessContentStream(
	int element
)
JavaScript
function accessContentStream(element);

Parameters

element
Type: System..::.Int32
An integer specifying the index of the content element to which the content data belongs.

Return Value

A Stream object for reading content data. To retrieve content at arbitrary positions within the stream, cast the returned Stream to ExtendedStream and use the methods on ExtendedStream.

ToggleSee Also