[Logo]
Forums Register Login
I am using multiple image upload but my heap size can be problem
I am using multiple image upload , but my JVM heap size is 128mb on my hosting. If users try to upload file which is above 128mb . Server throw exception java.lang.OutOfMemoryError: Java heap space . Which way can be much more efficient?How can I solve this problem ?
I don't think there are ways to upload images via HTTP that don't require the entire image to be in memory, so you may be out of luck. But uploading files that big over HTTP isn't fun for the user, anyway. Can you provide FTP space for that purpose? Or is using an FTP client beyond your users?
 

Tim Moores wrote:I don't think there are ways to upload images via HTTP that don't require the entire image to be in memory, so you may be out of luck. But uploading files that big over HTTP isn't fun for the user, anyway. Can you provide FTP space for that purpose? Or is using an FTP client beyond your users?




Yes I have FTP account . But if i will use FTP account , Will not happen any heap problems? I think that if file size is much more than my heap space , again I will face the problem
Is the FTP server implemented in Java as part of your web app? That would be quite unusual.
 

Tim Moores wrote:Is the FTP server implemented in Java as part of your web app? That would be quite unusual.


I am not using FTP , But in my hosting have FTP function and i can use it . If FTP will solve my problem , i can use it
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 400 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 10:40:49.