Datasnap.DBClient.TCustomClientDataSet.SaveToStream

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

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

C++

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

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