|内容||Do not store the actual path to database. Better to store the image's sequence number to database and have function that can generate path from the sequence number. e.g:|
File path = generatePathFromSequenceNumber(sequenceNumber);
It is easier to handle if you need to change directory structure some how. Maybe you need to move the images to different location, maybe you run out of space and you start storing some of the images on the disk A and some on the disk B etc. It is easier to change one function than to change paths in database.