Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

FileUpload Exception when uploading large File say 100MB

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am trying to upload the file of 1kb to 250MB.
I had developed 2 applications
1>In Struts framework (one application)
2> and using servlets and JSP (second application)

I am using second application (using servlets and JSP )
when i am trying to upload locally on my machine it is working very fine and able to upload as much as i can
so for testing i have to upload MAX till 250MB(because it is client requirement)

All these experiments are on the development server and External IP (using internet)
In my application i am splitting the file say example: I am tring to upload 100Mb of file
step 1> on the server side i am splitting the file of 100Mb in to 1Mb and saving in the Temporary folder
step 2> I am joining the splitted files and then again joining to the orignal file (at the time of upload ) to the destination location
step 3 > Deleting the temporay folder after the joining is done

So These are the results on Development Server (L.A.N) local area network
For --->>13Mb -------->>(Time Taken) 3 minutes
For --->>25Mb -------->>(Time Taken) 6 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>100Mb -------->>(Time Taken) 18 minutes
For --->>150Mb -------->>(Time Taken) 30 minutes
For --->>250Mb -------->>(Time Taken) 58 minutes

--------------------------------------------------------------------------------

Similiarly
These are the results on External IP (through internet)
For --->>20Mb -------->>(Time Taken) 5 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>78Mb -------->>(Time Taken) 20 minutes

after that if i am tring to upload more than this i am unable to upload
and getting this exception at the server LOG

1>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly

2>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Connection reset


Can any one help me how to make this programm efficient and error free
i cannot use FTP because i have to create a port which is not permitted by the client
can any one help me out with the execellent solution
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain, in a little more detail how you are doing these things?


All these experiments are on the development server and External IP (using internet)
In my application i am splitting the file say example: I am tring to upload 100Mb of file
step 1> on the server side i am splitting the file of 100Mb in to 1Mb and saving in the Temporary folder
step 2> I am joining the splitted files and then again joining to the orignal file (at the time of upload ) to the destination location



 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic