I have stored the path of the image in the database, but how should I write the background code to display the image in the foreground? It is not an upload function, but a function of getting the image from the database and displaying it in the foreground.
I have stored the path of the image in the database, but how should I write the background code to display the image in the foreground? It is not an upload function, but to obtain the image from the database and display it in the foreground.
Just add the full path directly to the view template
Get the image path from the database: select path field form table name to query all data, directly pass the obtained data into the view and traverse it in the img tag