You could dedicate a folder ( on server ) and insert the images.
For example, if you have an image like test.jpg, it is best to save the image in the dedicated server folder and the file name (test.jpg) in the db.
So that when you upload it you will have to read only the name from the db and take the photo from the folder giving the entire path where it is stored (
https://xxxx.com/foto/test.jpg)