Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

FormPoster.addFileData

Adds file (upload) data.

Use this method for a multipart post, for example INPUT TYPE=FILE. This method has four variants:


FormPoster.addFileData

Adds file (upload) data using a byte array. Use this method for multipart posting operations, for example, INPUT TYPE=FILE.

Syntax

Parameters

sParamName
The parameter name.

sFileName
The name of the file on the target system.

byData
The byte array containing the file data.

Returns

Returns true if successful.


FormPoster.addFileData

Adds file (upload) data using a byte array. Use this method for multipart posting operations; for example, INPUT TYPE=FILE.

Syntax

Parameters

sParamName
The parameter name.

sFileName
The name of the file on the target system.

byData
The byte array containing the file data.

sMIMEType
The MIME type of the data.

Returns

Returns true if successful.


FormPoster.addFileData

Adds file (upload) data using an input stream. Use this method for multipart posting operations; for example, INPUT TYPE=FILE.

Syntax

Parameters

sParamName
The parameter name.

sFileName
The name of the file on the target system.

is
The object containing the data you want to read.

sMIMEType
The MIME type of the data.

Returns

Returns true if successful.


FormPoster.addFileData

Adds file (upload) data using an input stream. Use this method for multipart posting operations; for example, INPUT TYPE=FILE.

Syntax

Parameters

sParamName
The parameter name.

sFileName
The name of the file on the target system.

is
The object containing the data you want to read.

Returns

Returns true if successful.

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.