Soap.InvokeRegistry.TSOAPAttachment.SetSourceStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetSourceStream(const Value: TStream; const Ownership: TStreamOwnership = soReference); virtual;

C++

virtual void __fastcall SetSourceStream(System::Classes::TStream* const Value, const System::Classes::TStreamOwnership Ownership = (System::Classes::TStreamOwnership)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TSOAPAttachment

Description

Specifies a stream from which TSOAPAttachment can read the content of the attachment.

Call SetSourceStream to supply the content of an attachment that the application sends from a stream object. SetSourceStream assigns the specified stream as the value of the SourceStream property, clears the FileName and SourceString properties, and sets the ContentType property to 'Application/binary'. If another MIME type string better describes the data, reset the ContentType property after calling SetSourceStream.

Value is a stream from which TSOAPAttachment can read the content of the attachment.

Ownership indicates whether the TSOAPAttachment object should free the stream (Value) when it no longer needs it. It becomes the value of the Ownership property.

See Also