Servertec FileUpload
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
How To
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Command Line
Administrator
Localization
Programming
Security
Performance
Deployment
Server API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileCache
FileUpload
IOHandler
IOManager
iws
Logger
MonitorEvent...
MultiPartForm
QuickSort
Realm
RealmAdmin...
RealmManager
ServletContextImpl
ServletContext...
ServletImpl
ServletManager
SocketHandler
Utils

Servlet / JSP API
Xerces API
CGI
SSI
Servlets
Config Files
Log Files
Classes
Directory Tree
Examples
Legal
Contact Us

 

java.lang.Object
 |
 +--stec.iws.FileUpload

public final class FileUpload

Methods used to access file upload object.

Methods

Method Description
getBuffer Returns a byte array containing the uploaded file.
getContentType Returns the content type.
getLocalFilePath Returns the local file path and name.
getRemoteFilePath Returns the remote file path and name.

getBuffer

Returns a byte array containing the uploaded file.

Syntax

public final byte[] getBuffer()

Parameters

None

Returns

byte[] the uploaded file.

Throws

Nothing

Example

byte[] buffer = fileupload.getBuffer();

getContentType

Returns the content type.

Syntax

public final String getContentType()

Parameters

None

Returns

String the content type.

Throws

Nothing

Example

String contentType = fileUpload.getContentType();

getLocalFilePath

Returns the local file path and name.

Syntax

public final String getLocalFilePath()

Parameters

None

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

Nothing

Example

String localFile = fileUpload.getLocalFilePath();

getRemoteFilePath

Returns the remote file path and name.

Syntax

public final String getRemoteFilePath()

Parameters

None

Returns

String the remote file path and name.

Throws

Nothing

Example

String remoteFile = fileUpload.getRemoteFilePath();
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:57:18 EDT 2005