# InStream data type
> Version: _Available or changed with runtime version 1.0._
Is a generic stream object that you can use to read from or write to files and BLOBs. You can define the internal structure of a stream as a flat stream of bytes. You can assign one stream to another. Reading from and writing to a stream occurs sequentially.
## Instance methods
The following methods are available on instances of the InStream data type.
Method name|Description
instream-eos-method|Indicates whether an input stream has reached End of Stream (EOS).
instream-length-method|Gets the stream length.
Position([BigInteger])<instream-position-method>|Get or set the current stream position in seekable streams.
Read(var Boolean [, Integer])<instream-read-boolean-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Byte [, Integer])<instream-read-byte-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Char [, Integer])<instream-read-char-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Integer [, Integer])<instream-read-integer-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var BigInteger [, Integer])<instream-read-biginteger-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Decimal [, Integer])<instream-read-decimal-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Guid [, Integer])<instream-read-guid-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Text [, Integer])<instream-read-string-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
Read(var Any [, Integer])<instream-read-joker-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.
ReadText(var Text [, Integer])<instream-readtext-method>|Reads text from an InStream object.
instream-resetposition-method|Resets the stream position on an InStream 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/instream/instream-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/instream/instream-data-type/
