on 02-01-2010 7:43 AM
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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.