RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.SaveToStream Method

Saves the contents of the attachment to a specified file.

Pascal
procedure SaveToStream(AStream: TStream);
C++
__fastcall SaveToStream(TStream AStream);

Call SaveToStream to write the contents of the attachment to a specified stream. This content can come from 

The temporary file that the CacheFile property indicates. 

The stream that the SourceStream property specifies. 

The file that the SetSourceFile method supplies. 

The string that the SourceString property specifies. 

AStream is the stream to which SaveToStream writes the content of the attachment. 

 

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