Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 2.01 KB

blob-createoutstream-method.md

File metadata and controls

51 lines (39 loc) · 2.01 KB
title description ms.author ms.date ms.topic author ms.reviewer
Blob.CreateOutStream(OutStream [, TextEncoding]) Method
Creates an OutStream object for a binary large object (BLOB).
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

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 [!INCLUDEd365fin_md] 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.

See Also

Blob Data Type
Get Started with AL
Developing Extensions