Skip to content

TMiletusBinaryDataStream

Below is a list of the properties and methods for TMiletusBinaryDataStream. This class allows reading and writing files using binary data. It's highly recommended to use the asynchronous load and save functions where possible.

Properties for TMiletusBinaryDataStream

Property Description
Base64: string Set or retrieve the stored data as a Base64 encoded string.
Text: string Set or retrieve the stored data as a string.
AsArrayBuffer: TJSArrayBuffer Set or retrieve the stored data as a TJSArrayBuffer.

Methods for TMiletusBinaryDataStream

Property Description
LoadFromFile(const FileName: string) Method to read data from a file from the local file system synchronously.
LoadFromFileAsync(const FileName: string; AProc: TMiletusLoadFileProc) Method to read data from a file from the local file system asynchronously.
LoadFromFileRequest(const FileName: string; AProc: TMiletusLoadFileProc) Method to read data from a file from the local file system through an HTTP request.
SaveToFile(const: FileName: string) Method to save data to a file on the local file system synchronously.
SaveToFileAsync(const FileName: string) Method to save data to a file on the local file system asynchronously.
SaveToFileRequest(const: FileName: string) Method to save data to a file on the local file system through an HTTP request.