I have a JAVA application that needs to store profile pictures that user uploaded. My project already finish and works fine.
//in my LOCALHOST i use this path:
File file = new File("C:/myProject/uploads/profile_images");
So, now I want deploy this project, i'm using jelastic environment and the question is:
Where should these files (pictures) be stored in our Jelastic ?
- I already tried in the same code but doens't work.
- I already tried save the files in WebContent folder, work, but when I expand a new .war file, the files that user has uploaded are overrides.
- I read about save files in mySql, is a good idea?
Thank for your atention.