cancel
Showing results for 
Search instead for 
Did you mean: 

DataInputStream issues for File Upload program deployed in SAP WAS

0 Kudos

Hi ,

I have written File upload program in JSP and deployed in SAP WAS, while creating the DataInputStream object using request.getInputStream the inputstream is becoming null .

if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {

DataInputStream in = new DataInputStream(request.getInputStream());

The same program is deployed in Tomcat and weblogic, it is working fine. I have checked in SAP Wikis and found the ServletInputStream timeout parameter should be fine tuned by increasing the timeout from 10sec to higher value . I have increased to 20 days still no result. I m running on SP9 but in fine tune forums it says the SP of the J2ee enginee should be upgraded to SP13.

Can one someone help me out on upgrading from SP9 to SP13 is mandatory or do we have any other fine tune params that will solve my problem?

https://wiki.sdn.sap.com/wiki/display/EP/How%20to%20Fine%20Tune%20the%20Performance%20of%20Portal%20...

Note : with the default ServletInputStream Timeout param of 10 sec , i could upload 1kb of data. If i m increasing the kb , i m getting these issues.

Regards,

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi All,

I found the solution for my question, if you guys are having the same problem. please fine tune the following parameter to support huge files upload:

Step 1: Go to Visual Administartor ->Dispatcher

Step2 : Expand Dispatcher -> services->HTTP Provider

Step 3: Go to Properties Tab and select ReadBufferSize property

Step4 : Input the maximum size of the file you want to upload in bytes

Step5 : Click on update and Save buttons

Now try to access your application and upload the file , the file will be uploaded succesfully.

Regards,

Ravi.