Using Persistent Blobs
If you check the Microsoft’s Base Application, you wil discover that a table called “Persistent Blob” is available (table Id = 4151).This table is not directly accessible by code (its access level is Internal) and it’s defined as follows:
table 4151 "Persistent Blob"
{
Access = Internal;
fields
{
field(1; "Primary Key"; BigInteger)
{
AutoIncrement = true;
DataClassification = SystemMetadata;
}
field(2; Blob; BLOB)
{
DataClassification = CustomerContent;
}
}
keys
{
key(Key1; "Primary Key")
{
Clustered = true;
}
}
fieldgroups
{
}
}
This table is used to store Blob values between sessions and you can use it via the Persistent Blob codeunit, that exposes the following methods:
- Create
- Exists
- Delete
- CopyFromInStream
- CopyToOutStream
The following code...