We need a system in which, by the name of the database, the name of the table and the id of the desired row, we could get the image corresponding to this row.
I see 3 options:
1) store the images themselves in the database
2) create a field in the table and store the addresses of the desired images there
3) to store images in a folder with the address of the type files / database / table / id
Now I use the third option. And everything would be fine, but on the Internet many times stumbled upon a similar question and the answer was always the second option.
So, what are the pros / cons of the second and third options (the first, for obvious reasons, disappears) and why everyone advises the second one?
table/id1,table/id2, etc. and put the files inside by some simple algorithm like the remainder of dividing the ID by the number of such folders - Mike