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());
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Net.Mime.pas System.Net.Mime.hpp |
System.Net.Mime | TMultipartFormData |
説明
バイト フィールドを指定されたバイト値と共にフォーム データに追加します。
メソッド パラメータ:
- AField: フィールド名を参照
- ABytes: フィールドのバイト値
- AFileName: フィールドの "filename" 属性値(任意)
- AContentType: フィールドの "Content-Type" 属性値(任意)。これが指定されていない場合、"application/octet-stream" が使用されます。