Soap.InvokeRegistry.TSOAPAttachment.SetSourceFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetSourceFile(const Value: string); virtual;

C++

virtual void __fastcall SetSourceFile(const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TSOAPAttachment

Description

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

Call SetSourceFile to supply the content of an attachment that the application sends from a file. SetSourceFile reads the content from the specified file, clears the SourceStream 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 SetSourceFile.

Value is the fully-qualified file name for the file whose content should be sent as an attachment.

See Also