Codeunit "Temp Blob"
The container to store BLOB data in-memory.
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
CreateInStream
Creates an InStream object with default encoding for the TempBlob. This enables you to read data from the TempBlob.
procedure CreateInStream(): InStream
Returns
| Type | Description |
|---|---|
| InStream |
The InStream variable with the BLOB content attached. |
CreateInStream
Creates an InStream object with default encoding for the TempBlob. This enables you to read data from the TempBlob.
procedure CreateInStream(var InStream: InStream)
Parameters
| Name | Type | Description |
|---|---|---|
| InStream | InStream |
The InStream variable passed as a VAR to which the BLOB content will be attached. |
CreateInStream
Creates an InStream object with default encoding for the TempBlob. This enables you to read data from the TempBlob.
procedure CreateInStream(Encoding: TextEncoding): InStream
Parameters
| Name | Type | Description |
|---|---|---|
| Encoding | TextEncoding |
The text encoding to use. |
Returns
| Type | Description |
|---|---|
| InStream |
The InStream variable with the BLOB content attached. |
CreateInStream
Creates an InStream object with the specified encoding for the TempBlob. This enables you to read data from the TempBlob.
procedure CreateInStream(var InStream: InStream, Encoding: TextEncoding)
Parameters
| Name | Type | Description |
|---|---|---|
| InStream | InStream |
The InStream variable passed as a VAR to which the BLOB content will be attached. |
| Encoding | TextEncoding |
The text encoding to use. |
CreateOutStream
Creates an OutStream object with default encoding for the TempBlob. This enables you to write data to the TempBlob.
procedure CreateOutStream(): OutStream
Returns
| Type | Description |
|---|---|
| OutStream |
The OutStream variable passed which the BLOB content will be attached. |
CreateOutStream
Creates an OutStream object with default encoding for the TempBlob. This enables you to write data to the TempBlob.
procedure CreateOutStream(var OutStream: OutStream)
Parameters
| Name | Type | Description |
|---|---|---|
| OutStream | OutStream |
The OutStream variable passed as a VAR to which the BLOB content will be attached. |
CreateOutStream
Creates an OutStream object with the specified encoding for the TempBlob. This enables you to write data to the TempBlob.
procedure CreateOutStream(Encoding: TextEncoding): OutStream
Parameters
| Name | Type | Description |
|---|---|---|
| Encoding | TextEncoding |
The text encoding to use. |
Returns
| Type | Description |
|---|---|
| OutStream |
The OutStream variable with the BLOB content attached. |
CreateOutStream
Creates an OutStream object with the specified encoding for the TempBlob. This enables you to write data to the TempBlob.
procedure CreateOutStream(var OutStream: OutStream, Encoding: TextEncoding)
Parameters
| Name | Type | Description |
|---|---|---|
| OutStream | OutStream |
The OutStream variable passed as a VAR to which the BLOB content will be attached. |
| Encoding | TextEncoding |
The text encoding to use. |
HasValue
Determines whether the TempBlob has a value.
procedure HasValue(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the TempBlob has a value. |
Length
Determines the length of the data stored in the TempBlob.
procedure Length(): Integer
Returns
| Type | Description |
|---|---|
| Integer |
The number of bytes stored in the BLOB. |
FromRecord
Copies the value of the BLOB field on the RecordVariant in the specified field to the TempBlob.
procedure FromRecord(RecordVariant: Variant, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| RecordVariant | Variant |
Any Record variable. |
| FieldNo | Integer |
The field number of the BLOB field to be read. |
FromRecordRef
Copies the value of the BLOB field on the RecordRef in the specified field to the TempBlob.
procedure FromRecordRef(RecordRef: RecordRef, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| RecordRef | RecordRef |
A RecordRef variable attached to a Record. |
| FieldNo | Integer |
The field number of the BLOB field to be read. |
ToRecordRef
Copies the value of the TempBlob to the specified field on the RecordRef.
procedure ToRecordRef(var RecordRef: RecordRef, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| RecordRef | RecordRef |
A RecordRef variable attached to a Record. |
| FieldNo | Integer |
The field number of the Blob field to be written. |
FromFieldRef
Copies the value of the FieldRef to the TempBlob.
procedure FromFieldRef(BlobFieldRef: FieldRef)
Parameters
| Name | Type | Description |
|---|---|---|
| BlobFieldRef | FieldRef |
A FieldRef variable attached to a field for a record. |
ToFieldRef
Copies the value of the TempBlob to the specified FieldRef.
procedure ToFieldRef(var BlobFieldRef: FieldRef)
Parameters
| Name | Type | Description |
|---|---|---|
| BlobFieldRef | FieldRef |
A FieldRef variable attached to a field for a record. |