What type of data to choose in the database to store links to the image And how to do it right?

  • Something tells me that in the database it is better to keep a pure name with the extension .. And the paths will be registered in the application settings. After all, the paths can change and then all the links you have are broken - Alexey Shimansky

1 answer 1

Better keep the id in int , the extension in tinytext , the images will be in the same directory, called [id].[расширение] .