RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientBlobStream.Write Method

Writes Count bytes from Buffer to the current position in the field and updates the current position by Count bytes.

Pascal
function Write(const Buffer; Count: Longint): Longint; override;
C++
virtual __fastcall Longint Write(const  Buffer, Longint Count);

Use Write to write Count bytes to the BLOB field, starting at the current position. The Write method for TClientBlobStream always writes the entire Count bytes, as BLOB data does not necessarily include a termination character. Thus, Write is equivalent to the WriteBuffer method. 

All the other data-writing methods of a BLOB stream (WriteBuffer, WriteComponent) call Write to do their actual writing.

Note: Do not call Write when the TClientBlobStream was created in bmRead mode.
 

 

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