READ Function (BigText)
Microsoft Dynamics NAV 2015
Streams a BigText object that is stored as a BLOB in a table to a BigText variable.
[Ok := ] BigText.READ(InStream)
Parameters
- BigText
- Type: BigText The BigText variable into which you stream the BLOB.
- InStream
- Type: InStream The InStream object type that you use to stream a BLOB to a BigText variable.
This example shows how to stream a BigText that is stored as a BLOB in a table to a BigText variable.
This example requires that you define the following variables.
| Variable | DataType | Subtype |
|---|---|---|
|
Bstr |
BigText |
Not applicable |
|
EmployeeRec |
Record |
Employee |
|
Istream |
InStream |
Not applicable |
EmployeeRec.FIND('-');
EmployeeRec.CALCFIELDS(Picture);
EmployeeRec.Picture.CREATEINSTREAM(Istream);
Bstr.READ(Istream);
Use the CALCFIELDS Function (Record) to calculate the BlobField. A BlobField is a binary large object (maximum size 2 GB) and must be calculated if you want to use it in C/AL or display it in the application.
Show: