RAD Studio VCL Reference
TCGIResponse.SendStream Method

Sends the HTTP response message with the contents set to the contents of AStream.

procedure SendStream(AStream: TStream); override;
virtual __fastcall SendStream(TStream AStream);

Only call SendStream after first calling SendResponse. Unlike SendStream, SendResponse fills the header of the HTTP response message, based on the properties of the TCGIResponse object. If SendResponse has not been called first to set the header of the HTTP response message, set the ContentStream property to AStream, and call SendResponse


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