Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> File Upload with OAS 4.0 with JWeb

File Upload with OAS 4.0 with JWeb

From: <rnorthrop_at_my-deja.com>
Date: Thu, 18 Nov 1999 15:03:28 GMT
Message-ID: <8114fr$qi9$1@nnrp1.deja.com>


Thanks in advance for your responses.

I am using OAS 4.0 and trying to upload a file (through the HTML 'FILE' input type) and have an OAS JWeb cartridge parse the form request content and save the file on a server. The HTML code looks like:

<FORM METHOD=POST ACTION="fileUploadClass">
<INPUT TYPE = "FILE" NAME="aFile" ENCTYPE = "multipart/form">
<INPUT TYPE = "SUBMIT" NAME="Submit">

The java code which receives the form submission is:

req = oracle.owas.wrb.services.http.HTTP.getRequest(); byte[] bytes = req.getURLParameterContent();

This code works fine for small text files up seems to break in the following instances:

  1. If a larger text file (over 32K) is uploaded. Is there a limit on upload filesize through OAS?
  2. If a binary file is sent. It seems that the 'null' character in a binary file is preventing the entire file from being read. (Only part of it comes through).

If anyone has a work around or ideas, I would really appreciate it.

Thanks,

Rob

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Nov 18 1999 - 09:03:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US