RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestFile.Create Constructor

Creates an initializes an instance of TWebRequestFile.

Pascal
constructor Create(const AFieldName: AnsiString; const AFileName: AnsiString; const AContentType: AnsiString; AContent: Pointer; AContentLength: Integer);
C++
__fastcall TWebRequestFile(const AnsiString AFieldName, const AnsiString AFileName, const AnsiString AContentType, void * AContent, int AContentLength);

Typically, applications do not call the TWebRequestFile constructor. Instead, new Web request file objects are created by calling the Add method of a TWebRequestFiles collection as the file uploads are extracted from the current Web request. 

AFieldName is the name of the adapter field whose value this file represents. It becomes the value of the FieldName property. 

AFileName is the name of the file this object represents. It becomes the value of the FileName property. 

AContentType describes how the file content is encoded. It becomes the value of the ContentType property. 

AContent is an array of bytes that is the content of the file. It is used to initialize the Stream property. 

AContentLength is the number of bytes in AContent. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!