I have a JAVA application that needs to store profile images that the user uploaded.
//no meu LOCALHOST eu uso esse caminho e funciona perfeitamente:
File arquivo = novo File("C:/myProject/uploads/profile_images");
So now I want to deploy this project, I'm using the jelastic environment and the question is:
Where are these files (images) to be stored in Jelastic?
- I've tried the same code but it did not work.
- I already tried to save the files in the WebContent folder, it works perfectly, but when I expand a new .war file, the files that the user sent will be overwritten.
- I read about saving files in mySql, is it a good practice?
Thank you for your attention.