I need to insert images in MYSQL database table. The images are stored in the local disk. I am using LOAD_FILE() for inserting the images, but it only stores the path not the image.
If it is not possible to insert from local disk means from where can I get the images? Please give me a solution with what are the resources I need to store my images into the database.
I was able to get this done by moving the image(
fileName.jpg
) file first in to below folder(in my case)C:\ProgramData\MySQL\MySQL Server 5.7\Uploads
and then I executed below command and it works for me,Hope this helps.