There are two ways to store images in a database:
Save the image to the database (the path where the file is stored on the server or the path of the FTP server)
The image is directly written to the database field in the form of binary data stream (base64 form), not recommended, the storage space...