System.Net.Mime.TMultipartFormData.AddStream
Delphi
procedure AddStream(const AField: string; AStream: TStream; const AFileName: string = ''; const AContentType: string = '');
C++
void __fastcall AddStream(const System::UnicodeString AField, System::Classes::TStream* AStream, const System::UnicodeString AFileName = System::UnicodeString(), const System::UnicodeString AContentType = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Net.Mime.pas System.Net.Mime.hpp |
System.Net.Mime | TMultipartFormData |
Description
Adds a stream field to the form data with the specified stream value.
Method parameters:
- AField: Refers to the field name.
- AStream: The content of the stream represents the value of the field.
- AFileName: Optional "filename" attribute value of field.
- AContentType: Optional "Content-Type" attribute value of field. If not specified then "application/octet-stream" will be used.