{"title":"Blob.CreateInStream(InStream [, TextEncoding]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/blob/blob-createinstream-method/","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/blob/blob-createinstream-method, 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/blob/blob-createinstream-method","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":"Creates an InStream object for a binary large object (BLOB).","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Blob.CreateInStream(InStream [, TextEncoding]) Method","slug":"blobcreateinstreaminstream-textencoding-method","at":0,"chars":1256},{"level":2,"title":"Syntax","slug":"syntax","at":222,"chars":88},{"level":2,"title":"Parameters","slug":"parameters","at":310,"chars":814},{"level":2,"title":"Related information","slug":"related-information","at":1124,"chars":132}],"text":"# Blob.CreateInStream(InStream [, TextEncoding]) Method\n> Version: _Available or changed with runtime version 1.0._\nCreates an InStream object for a binary large object (BLOB). This enables you to read data from the BLOB.\n## Syntax\n```al\n Blob.CreateInStream(InStream: InStream [, Encoding: TextEncoding])\n```\n## Parameters\nBlob\nType: blob-data-type\nAn instance of the blob-data-type data type.\nInStream\nType: ../instream/instream-data-type\nThe InStream object type that has been created.\n*[Optional] Encoding*\nType: ../textencoding/textencoding-option\nThe encoding that will be used by the stream. The default encoding is MSDos.\nOptionally, you can specify the encoding on the stream. By specifying the ../../devenv-file-handling-and-text-encoding, you ensure that all the language-specific characters are represented correctly in Dynamics 365 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.\n```\nMyTable.MyBLOBfield.CreateInStream(MyStream, TextEncoding::WINDOWS);\n```\nSee ../../devenv-file-handling-and-text-encoding.\n## Related information\nblob-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}