RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.SetSourceStream Method

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

Pascal
procedure SetSourceStream(const Value: TStream; const Ownership: TStreamOwnership = soReference); virtual;
C++
virtual __fastcall SetSourceStream(const TStream Value, const TStreamOwnership Ownership = soReference);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!