java.lang.Object
|
+--stec.iws.FileUpload
public class FileUpload
Methods used to access file upload object.
Methods
getBuffer
Returns a byte array containing the uploaded file.
Syntax
public byte[] getBuffer()
Parameters
Returns
byte[]
|
the uploaded file.
|
Throws
Example
byte[] buffer = fileupload.getBuffer();
getContentType
Returns the content type.
Syntax
public String getContentType()
Parameters
Returns
Throws
Example
String contentType = fileUpload.getContentType();
getLocalFilePath
Returns the local file path and name.
Syntax
public 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 String getRemoteFilePath()
Parameters
Returns
String
|
the remote file path and name.
|
Throws
Example
String remoteFile = fileUpload.getRemoteFilePath();
|