From RAD Studio API Documentation
Jump to: navigation, search


property CacheFile: string read FCacheFile;


__property System::UnicodeString CacheFile = {read=FCacheFile};


Type Visibility Source Unit Parent
property public
Soap.InvokeRegistry TSOAPAttachment


Identifies the temporary file where the attachment is saved.

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.

See Also