Web.HTTPApp.TWebResponse.ContentStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ContentStream: TStream read FContentStream write SetContentStream;

C++

__property System::Classes::TStream* ContentStream = {read=FContentStream, write=SetContentStream};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebResponse

Description

Specifies the stream object for writing the contents of the HTTP response message to the web client.

Use ContentStream to set the contents of the HTTP response message to a value that can be written from a stream. ContentStream allows the response object to write its contents directly from a stream.

The stream specified by ContentStream can access a string of HTML commands, the contents of a BLOB database field, or any MIME content type.

Note: ContentStream supersedes the Content property. If both Content and ContentStream are set, the web client is sent the value of the ContentStream, not the value of the Content property.

See Also