Blob.CreateOutStream(OutStream [, TextEncoding]) Method

Version: Available or changed with runtime version 1.0.

Creates an OutStream object for a binary large object (BLOB). This enables you to write data to the BLOB.

Syntax

 Blob.CreateOutStream(OutStream: OutStream [, Encoding: TextEncoding])

Parameters

Blob
 Type: Blob
An instance of the Blob data type.

OutStream
 Type: OutStream
The OutStream 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.CreateOutStream(MyStream, TextEncoding::WINDOWS);  

For more information, see File Handling and Text Encoding.

Blob Data Type
Get Started with AL
Developing Extensions