WRITE Function (BigText)
Microsoft Dynamics NAV 2015
Streams a BigText object to a BLOB field in a table.
[Ok := ] BigText.WRITE(OutStream)
Parameters
- BigText
- Type: BigText The BigText that you want to write to a BLOB field.
- OutStream
- Type: OutStream The stream to which you write a BigText.
This example shows how to stream a BigText to a BLOB field in a table.
This example requires that you define the following variables.
| Variable name | DataType | Subtype |
|---|---|---|
|
Bstr |
BigText |
Not applicable |
|
ItemRec |
Record |
Item |
|
Ostream |
OutStream |
Not applicable |
Bstr.ADDTEXT('This is the text string that we want to store in a BLOB field.');
ItemRec.Picture.CREATEOUTSTREAM(Ostream);
Bstr.WRITE(Ostream);
ItemRec.INSERT;
Show: