# OutStream data type
> Version: _Available or changed with runtime version 1.0._
Is a generic stream object that you can use to write to files and BLOBs.
## Instance methods
The following methods are available on instances of the OutStream data type.
Method name|Description
outstream-write-variant-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-boolean-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-byte-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-char-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-integer-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-biginteger-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-decimal-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-guid-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-text-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-code-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-label-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-textconst-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-bigtext-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-date-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-time-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-datetime-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-dateformula-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-duration-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-option-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
Write(Record [, Integer])<outstream-write-table-integer-method>|Writes a specified number of bytes to the stream. Data is written in binary format.
outstream-write-recordid-integer-method|Writes a specified number of bytes to the stream. Data is written in binary format.
Write(Any [, Integer])<outstream-write-joker-integer-method>|Writes a specified number of bytes to the stream. Data is written in binary format.
WriteText([Text] [, Integer])<outstream-writetext-method>|Writes text to an OutStream object.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/outstream/outstream-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/outstream/outstream-data-type/
