FileVar Type
The file variable for the current request.
Remarks
This type describes a file that is to be posted when an upload action is performed. The type contains fields which describe this variable's name, and the filename of the file being uploaded.
Fields
ContentType String |
This field contains the value of the Content-Type of each form variable which corresponds to the file in the File field. |
File String |
This field contains the path and filename of each file to be sent. When the component is used as an upload client, this property must point to valid file name that will be sent to the server. If InputData or InputStream is set, this field may instead be set to the desired filename which will be used in the request. |
InputData String |
Specifies the file data to be sent. This field may be set to the file data instead of specifying a file from disk. If set, this field takes precedence over InputStream. |
InputDataB byte [] |
Specifies the file data to be sent. This field may be set to the file data instead of specifying a file from disk. If set, this field takes precedence over InputStream. |
InputStream java.io.InputStream |
This field is set when a stream is to be used for the data of the current filevar. |
Name String |
This field contains the name of each form variable which corresponds to the file in the File field. |
Constructors
public FileVar();
public FileVar(String name, String file);
public FileVar(String name, java.io.InputStream inputStream);
public FileVar(String name, byte [] inputData);