Reputation: 11
After clone the project in target linux server Using spring-boot:run command able to upload and view the images form jsp. But using war or jar Unable to store the images under WEB-INF/images folder. Can some one please help on how to store images and retrieve images. And also I need help to store image under the /var/images and retrieve images form /var/images. Images folder should be separate.
Upvotes: 0
Views: 198
Reputation: 36
You are not following the standard practices.Storing images in /var or WEB_INF is no more used in industry.Can you store the images in dropbox or S3 bucket and include the public URL in your UI code.that will save your IO of your server.This method takes care of compression by default.
Upvotes: 1