System.Net.Mime.TMultipartFormData.AddBytes
Delphi
procedure AddBytes(const AField: string; const ABytes: TBytes;
const AFileName: string = ''; const AContentType: string = '';
AHeaders: TStrings = nil);
C++
void __fastcall AddBytes(const System::UnicodeString AField, const System::Sysutils::TBytes ABytes, const System::UnicodeString AFileName = System::UnicodeString(), const System::UnicodeString AContentType = System::UnicodeString(), System::Classes::TStrings* AHeaders = (System::Classes::TStrings*)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Net.Mime.pas System.Net.Mime.hpp |
System.Net.Mime | TMultipartFormData |
Description
Adds a bytes field to the form data with the specified bytes value.
AddBytes has the following parameters:
AField
: Refers to the field name.ABytes
: The bytes value of the field.AFileName
: An optional filename attribute value of the field.AContentType
: An optional Content-Type attribute value for the field. If not specified, then application/octet-stream will be used.AHeaders
: Optional parameter that allows specifying additional headers for a section of multipart/form-data content. Default value isNil
.