Servertec   FileUpload
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Users
Reference
iServer API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileCache
FileUpload
IOHandler
IOManager
iws
Logger
MultiPartForm
QuickSort
QuickSortString...
Realm
RealmAdmin...
RealmManager
ServletContextImpl
ServletContext...
ServletImpl
ServletManager
Utils

Servlet API
CGI
SSI
Servlets
Config Files
Log Files
Classes
Directory Tree

Samples
Sales
Legal
Feedback

 

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

public 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 byte[] getBuffer()

Parameters

None

Returns

byte[] the uploaded file.

Throws

Nothing

Example

byte[] buffer = fileupload.getBuffer();

getContentType

Returns the content type.

Syntax

public 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 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 String getRemoteFilePath()

Parameters

None

Returns

String the remote file path and name.

Throws

Nothing

Example

String remoteFile = fileUpload.getRemoteFilePath();
 top of page
 Built with iScript Copyright © 1997-2000 Servertec. All rights reserved.
Last Modified: Thu Aug 10 13:06:59 EDT 2000