java.lang.Object
|
+--stec.iws.FileUpload
public final class FileUpload
Methods used to access file upload object.
Methods
Notes
Requires that iws_dir/classes/optional.jar be
present in the CLASSPATH.
getBuffer
Returns a byte array containing the uploaded file.
Syntax
public final byte[] getBuffer()
Parameters
Returns
byte[]
|
the uploaded file.
|
Throws
Example
byte[] buffer = fileupload.getBuffer();
getContentType
Returns the content type.
Syntax
public final String getContentType()
Parameters
Returns
Throws
Example
String contentType = fileUpload.getContentType();
getLocalFilePath
Returns the local file path and name.
Syntax
public final String getLocalFilePath()
Parameters
Returns
String
|
the local file path and name. null if not written to disk and in
memory buffer that can be retrieved using getBuffer().
|
Throws
Example
String localFile = fileUpload.getLocalFilePath();
getRemoteFilePath
Returns the remote file path and name.
Syntax
public final String getRemoteFilePath()
Parameters
Returns
String
|
the remote file path and name.
|
Throws
Example
String remoteFile = fileUpload.getRemoteFilePath();
|