From RAD Studio API Documentation
Jump to: navigation, search


function Write(const Buffer; Count: Longint): Longint; override;


virtual int __fastcall Write(const void *Buffer, int Count)/* overload */;
inline int __fastcall  Write(const System::DynamicArray<System::Byte> Buffer, int Offset, int Count){ return System::Classes::TMemoryStream::Write(Buffer, Offset, Count); }
inline int __fastcall  Write(const System::DynamicArray<System::Byte> Buffer, int Count){ return System::Classes::TStream::Write(Buffer, Count); }


Type Visibility Source Unit Parent
function public
Datasnap.DBClient TClientBlobStream


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

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.

See Also