Compartir a través de


CREATEOUTSTREAM Function (BLOB)

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

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 Microsoft 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.CREATEINSTREAM(MyStream, TextEncoding.WINDOWS)
    

    For more information, see Text Encoding.

See Also

Tasks

How to: Use Streams to Write to Text Files

Reference

BLOB Data Type
InStream and OutStream Data Types

Concepts

Text Encoding