{"title":"InStream data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/instream/instream-data-type/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/instream/instream-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Is a generic stream object that you can use to read from or write to files and BLOBs.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":319,"chars":1936},{"level":2,"title":"Related information","slug":"related-information","at":2255,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nIs 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.\n## Instance methods\nThe following methods are available on instances of the InStream data type.\nMethod name|Description\ninstream-eos-method|Indicates whether an input stream has reached End of Stream (EOS).\ninstream-length-method|Gets the stream length.\nPosition([BigInteger])<instream-position-method>|Get or set the current stream position in seekable streams.\nRead(var Boolean [, Integer])<instream-read-boolean-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Byte [, Integer])<instream-read-byte-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Char [, Integer])<instream-read-char-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Integer [, Integer])<instream-read-integer-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var BigInteger [, Integer])<instream-read-biginteger-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Decimal [, Integer])<instream-read-decimal-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Guid [, Integer])<instream-read-guid-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Text [, Integer])<instream-read-string-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nRead(var Any [, Integer])<instream-read-joker-integer-method>|Reads a specified number of bytes from an InStream object. Data is read in binary format.\nReadText(var Text [, Integer])<instream-readtext-method>|Reads text from an InStream object.\ninstream-resetposition-method|Resets the stream position on an InStream object.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}