RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.SaveToFile Method

Saves the contents of the attachment to a specified file.

Pascal
procedure SaveToFile(AFileName: string);
C++
__fastcall SaveToFile(AnsiString AFileName);

Call SaveToFile to save the contents of the attachment to a specified file. 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. 

AFileName is the name of the file to which SaveToFile writes the content of the attachment. 

 

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