Integrated File System Introduction
Stream file
A stream file is a randomly accessible sequence of bytes, with no further structure imposed by the system. The integrated file system provides support for storing and operating on information in the form of stream files. Documents that are stored in your server's folders are stream files. Other examples of stream files are PC files and the files in UNIX systems. An integrated file system stream file is a system object that has an object type of *STMF.
To better understand stream files, it is useful to compare them with iSeries database files. A database file is record-oriented; it has predefined subdivisions that consist of one or more fields that have specific characteristics, such as length and data type.
Figure 3. Comparison of a stream file and a record-oriented file
Stream files and record-oriented files are structured differently, and this difference in structure affects how the files are used. The structure affects how an application is written to interact with the files and where each type of file is best used in an application. A record-oriented file, for example, is well suited for storing customer statistics such as name, address, and account balance. A record-oriented file allows these predefined fields to be individually accessed and manipulated, using the extensive programming facilities of your server. But a stream file is better suited for storing information such as a customer's picture, which is composed of a continuous string of bits representing variations in color. Stream files are particularly well suited for storing strings of data such as the text of a document, images, audio, and video.
For more information on stream files in the integrated file system, see:
- Copy data between stream files and database files.
- *TYPE1 and *TYPE2 stream files.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]