Blob.CreateInStream(InStream [, TextEncoding]) Method
Version: Available or changed with runtime version 1.0.
Creates an InStream object for a binary large object (BLOB). This enables you to read data from the BLOB.
Syntax
Blob.CreateInStream(InStream: InStream [, Encoding: TextEncoding])
Parameters
Blob
Type: Blob
An instance of the Blob data type.
InStream
Type: InStream
The InStream object type that has been created.
[Optional] Encoding
Type: TextEncoding
The encoding that will be used by the stream. The default encoding is MSDos.
Optionally, you can specify the encoding on the stream. By specifying the File Handling and Text Encoding, you ensure that all the language-specific characters are represented correctly in Dynamics 365 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.
MyTable.MyBLOBfield.CreateInStream(MyStream, TextEncoding::WINDOWS);
For more information, see File Handling and Text Encoding.