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.


 Blob.CreateInStream(InStream: InStream [, Encoding: TextEncoding])


 Type: Blob
An instance of the Blob data type.

 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.

See Also

Blob Data Type
Get Started with AL
Developing Extensions