1
I have a JAVA application that needs to store profile images that the user sent.
//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 these files (images) should be stored in Jelastic?
- I’ve tried the same code, but it didn’t work.
- I have already tried saving the files in Webcontent folder, it works perfectly, but when I expand a new file. War, the files the user sent will be overwritten.
- I read about saving files in mysql, it’s a good practice?
Thank you for your attention.
Good afternoon Fernando, Thank you for the reply. So that’s exactly what I wanted, to record in the file system, I can do this successfully locally. However in Jelastic production environment do not know which way to save these files.
– sergioBertolazzo
Yes I understand. As far as I know Jelastic has a composition filesystem that can be used with Ocker, IE, you will actually have a machine there, then you just have to see how to statically save the images there. Have a /home on your server(container) that you can save there.
– Fernando Almeida