Table of Contents

Codeunit "Persistent Blob"

ID 4101
Namespace: System.Utilities

The interface for storing BLOB data between sessions.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

Create

Create a new empty PersistentBlob.

procedure Create(): BigInteger

Returns

Type Description
BigInteger

The key of the new BLOB.

Exists

Check whether a BLOB with the Key exists.

procedure Exists("Key": BigInteger): Boolean

Parameters

Name Type Description
Key BigInteger

The key of the BLOB.

Returns

Type Description
Boolean

True if the BLOB with the given key exists.

Delete

Delete the BLOB with the Key.

procedure Delete("Key": BigInteger): Boolean

Parameters

Name Type Description
Key BigInteger

The key of the BLOB.

Returns

Type Description
Boolean

True if the BLOB with the given key was deleted.

CopyFromInStream

Save the content of the stream to the PersistentBlob.

procedure CopyFromInStream("Key": BigInteger, SourceInStream: InStream): Boolean

Parameters

Name Type Description
Key BigInteger

The key of the BLOB.

SourceInStream InStream

The InStream from which content will be copied to the PersistentBlob.

Returns

Type Description
Boolean

True if the BLOB with the given key was updated with the contents of the source.

CopyToOutStream

Write the content of the PersistentBlob to the Destination OutStream.

procedure CopyToOutStream("Key": BigInteger, DestinationOutStream: OutStream): Boolean

Parameters

Name Type Description
Key BigInteger

The key of the BLOB.

DestinationOutStream OutStream

The OutStream to which the contents of the PersistentBlob will be copied.

Returns

Type Description
Boolean

True if the BLOB with the given Key was copied to the Destination.

See also