# Blob data type
> Version: _Available or changed with runtime version 1.0._
Is a complex data type. Variables of this data type differ from normal numeric and string variables in that BLOBs have a variable length. The maximum size of a BLOB(binary large object) is 2 GB.
## Instance methods
The following methods are available on instances of the Blob data type.
Method name|Description
CreateInStream(InStream [, TextEncoding])<blob-createinstream-method>|Creates an InStream object for a binary large object (BLOB). This enables you to read data from the BLOB.
CreateOutStream(OutStream [, TextEncoding])<blob-createoutstream-method>|Creates an OutStream object for a binary large object (BLOB). This enables you to write data to the BLOB.
Export(Text)<blob-export-method>|Exports a binary large object (BLOB) to a file.
blob-hasvalue-method|Determines whether a binary large object (BLOB) has a value.
Import(Text)<blob-import-method>|Imports a binary large object (BLOB) from a file.
blob-length-method|Returns the number of bytes in the binary large object (BLOB).
## Remarks
Use BLOBs to store memos (text), pictures (bitmaps), or user-defined types.
> NOTE
> You cannot view text that is stored in BLOBs from the development environment.
You can read from and write to BLOBs by creating input and output streams, respectively. To do so, use blob-createinstream-method and blob-createoutstream-method.
## 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/blob/blob-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/blob/blob-data-type/
