Creates an InStream object for a binary large object (BLOB). This enables you to read data from the BLOB.

Blob.CreateInStream(Stream[,TextEncoding.value])

Parameters

Blob

Type: Variable

The BLOB variable for which you are creating the InStream object.

Stream

Type: InStream

The InStream object type that has been created.

TextEncoding

Value: MsDos, UTF8, UTF16, or Windows

Optionally, you can specify the encoding on the stream. By specifying the text encoding, you ensure that all the language-specific characters are represented correctly in Microsoft Dynamics NAV when you read data and write data. The following example illustrates how you can set the encoding to Windows when you create a stream for a BLOB field.

 Copy Code
MyTable.MyBLOBfield.CREATEINSTREAM(MyStream, TextEncoding.WINDOWS)
For more information, see Text Encoding.

See Also