Create a new Content object by consuming the given InputStream and buffereing it in memory. This factory method immediately reads the stream to the end and buffers it. This could result in an OutOfMemoryError if the stream contains a large amount of data. The provided Stream will be closed.
[Visual Basic] Overloads Public Shared Function NewContent( _ ByVal uri As String, _ ByVal documentStream As Stream, _ ByVal createOptions As ContentCreateOptions _ ) As Content
The URI (name) with which the document will be inserted into the content store. If the URI already exists in the store, it will be replaced with the new value.
documentStream
The stream making up the document content.
createOptions
Creation meta-information to be applied when the content is inserted into the contentbase. These options control the document format (xml, text, binary) and access permissions.
Return Value
A Content object suitable for passing to Session.insertContent(Content)