Answer the question
In order to leave comments, you need to log in
What is the best way to store image information in a database?
Now there are two options:
1) Create a Photos table with a unique key and a path to the picture:
Photos
id | path
ProductPhotos UsersPhotos
id | photoId id | photoId
Answer the question
In order to leave comments, you need to log in
They also used to store graphical information in the database, but they abandoned this idea, the database is growing too fast, plus the overhead for loading / unloading.
As a result, we store graphic information on the file server, and in the database only links to graphic information (i.e. a description of what we store and the path to the file)
normal solution. Just keep weight, loading date and other useful information
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question