Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

%Library.FileBinaryStream

stream class %Library.FileBinaryStream extends %Library.BinaryStream, %Library.FileStreamAdaptor

Stream class that stores binary data in external files. This class is deprecated in favor of %Stream.FileBinary. For example the following code opens a file binary stream, points it at a particular file on the filesystem and then reads it in chunks of 32,000 bytes:
  Set stream=##class(%FileBinaryStream).%New()
  Set stream.Filename="c:\myfile.txt"
  While 'stream.AtEnd {
  Set line=stream.Read()
  ; Process the chunk here
  }
  

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab