Reputation: 25
I want to load multiple files to a database for that, I load my file ServletFileUpload API, my question is until file size I can upload?, Because there is a limit threshold is passed if would have to be stored in a temporary file, however if you go over that limit are stored in memory.
Now I have the kind that makes this climb, but my question arises in the maximum size that I can assign that threshold.
And my other question is, if this in memory that information I can guess the deal as a data stream in order to insert them into a database, do not know if this is correct.
Upvotes: 0
Views: 1091
Reputation: 5903
Your space is limited by the memory that got assigned to the JVM that runs that servlet. Have you tried to save the file while uploading into the filesystem? Using a buffered solution could save lots of memory.
Upvotes: 1