InStream and OutStream Data Types in Dynamics NAV

Reads from or writes to files and BLOBs.


The InStream (input stream) and OutStream (output stream) data types are generic stream objects that you can use to read from or write to files and BLOBs. In addition, the InStream and OutStream data types enable data to be read from and sent to Automation Data Type objects and OCX Data Type objects. The Microsoft XML DOM can read from an InStream object and write to an OutStream object.

You can define the internal structure of a stream as a flat stream of bytes. You can assign one stream to another. Reading from and writing to a stream occurs sequentially.

You can create a stream object by using the following functions: