Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an OutStream object for a binary large object (BLOB). This enables you to write data to the BLOB.
Syntax
Blob.CreateOutStream(Stream [,TextEncoding.value])
Parameters
Blob
Type: Variable
The BLOB variable for which you are creating the OutStream object.
Stream
Type: OutStream
The OutStream 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 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.
MyTable.MyBLOBfield.CREATEOUTSTREAM(MyStream, TextEncoding.WINDOWS)
For more information, see Text Encoding.
See Also
BLOB Data Type
InStream and OutStream Data Types
How to: Use Streams to Write to Text Files
Text Encoding