Servertec   FileUpload
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Users
Reference
iServer API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileUpload
iws
Logger
MultiPartForm
QuickSort
Realm
Utils

Servlet API
CGI
SSI
Servlets
Logs

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-1999 Servertec. All rights reserved.
Last Modified: Mon Jun 28 23:14:48 EDT 1999