If possible, you have two options:
You keep the path of the image in the database and the image in a folder where you are going to upload the images, and when you want to show the images in the browser, you simply look for the path in the database eslache, the image and its format, and you show it in html ex: C: /xampp/htdocs/tuproyecto/uploads/imagen.jpg
you save the image in base64 string format, there you will have the same image encoded in the database, and at the time of showing, you just have to decode it.
I hope to have you help them, for better explanations, expose the code ....