How can I create a database table for uploading images and use it for storage? Also, do you want to create a separate table to store uploaded images, or simply add fields in the information table to store images? How can I create a database table for uploading images and use it for storage? Also, do you want to create a separate table to store uploaded images, or simply add fields in the information table to store images?
Reply content:
How can I create a database table for uploading images and use it for storage? Also, do you want to create a separate table to store uploaded images, or simply add fields in the information table to store images?
The field type is binary. It is generally called BLOB.
However, for example, in sqlite, storing binary files will greatly increase footprint. The general practice is to save images as physical files and store paths in the database.