I don't understand the items in the following code meant for displaying image
<img src="data:image/jpeg;base64,' . base64_encode($data) . '" />
I don't understand the items in the following code meant for displaying image
<img src="data:image/jpeg;base64,' . base64_encode($data) . '" />
When an image's link starts with a data:
, it means the image is loaded into the page from a MySQL Database. The image gets directly added to the page from the Server's SQL Database and not via a picture file in the server.