if I have a web application with a table user and user_images. theres a one to many relationship where a user can have many images. the images are stored in a folder on the file system and the images table in the database only stores image name, date, width and height.
a customer can select one of his many images as a profile photo.
1) how should I assign image names for easier retrieval.
2) should I store the profile photos in a different folder?
I am creating a Java EE Web Application that I intend to deploy in glassfish server
subject: how should I organise images in a web application for fast retrieval