MarkLogic XCC/.Net Library |

# Content.OpenDataStream Method

Return the byte stream that makes up this document. If the content is character data, as opposed to a binary BLOB, this should be a UTF-8 encoding of the characters.

Each call to this method returns a stream positioned at the beginning of the content. The Stream object should be closed by the client. The returned Stream is not intended to be shared. Each call to this method implies that any prior state should be discarded and a new stream created that is positioned at the beginning of the content.

[Visual Basic]
Function OpenDataStream() As Stream
[C#]
Stream OpenDataStream();

#### Return Value

An open Stream object from which the content can be read.

#### See Also

Content Interface | Marklogic.Xcc Namespace