Icon ContentStream Property

property ContentStream: TStream

Specifies a TStream descendant class instance that contains the binary content to include as the content part. This property, the RawContent property, and the Content property are mutually-exclusive. If more than one property is assigned a value, then the ContentStream property will take precedence, followed by the RawContent property, followed by the Content property.

Information If this property is assigned a value and the Content-Type header is not specified using the Headers property, it will be automatically set to "application/octet-stream" when the server request is executed.

Warning This is just a reference to the TStream descendant class instance, so please make sure that you do not free this class instance before the TServerRequest Execute method is called.
Image