System.Net.Mime.TMultipartFormData.AddBytes
Delphi
procedure AddBytes(const AField: string; const ABytes: TBytes; const AFileName: string = ''; const AContentType: string = '');
C++
void __fastcall AddBytes(const System::UnicodeString AField, const System::DynamicArray<System::Byte> ABytes, 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 bytes field to the form data with the specified bytes value.
Method parameters:
- AField: Refers to the field name
- ABytes: The bytes value of the field
- AFileName: An optional "filename" attribute value of field
- AContentType: An optional "Content-Type" attribute value for field. If not specified then "application/octet-stream" will be used.