This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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