RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.CacheFile Property

Identifies the temporary file where the attachment is saved.

Pascal
property CacheFile: string;
C++
__property AnsiString CacheFile;

CacheFile is set automatically when the application receives an attachment along with a SOAP message. This is the name of the temporary file where the application stores the contents of the attachment. 

To save this temporary file to another file of your choosing, use the SaveToFile method. You can also save its contents to a stream, using the SaveToStream method. 

The ContentType property indicates the format of the data in this temporary file. 

By default, when the TSOAPAttachment object is freed, it deletes the temporary file that CacheFile indicates. Use the CacheFilePersist property to prevent this file from being deleted. 

 

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