Datasnap.DBClient.TCustomClientDataSet.SaveToStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SaveToStream(Stream: TStream; Format: TDataPacketFormat = dfBinary);

C++

void __fastcall SaveToStream(System::Classes::TStream* Stream, TDataPacketFormat Format = (TDataPacketFormat)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

Saves a client dataset's data to a stream.

Call SaveToStream to write a client dataset's data to a stream.

Stream is the name of an existing stream to write to.

Format indicates what format to use when saving the data: binary (dfBinary) or XML (dfXML), or UTF8-based XML (dfXMLUTF8).

If the stream requires a buffer, use the DataSize property to determine the required size of the buffer.

See Also