RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.SaveToStream Method

Saves a client dataset's data to a stream.

Pascal
procedure SaveToStream(Stream: TStream; Format: TDataPacketFormat = dfBinary);
C++
__fastcall SaveToStream(TStream Stream, TDataPacketFormat Format = dfBinary);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!