I am using a local database and I am trying to insert a image into a Photo VARBINARY(20000) column.
What is the path I have to use to LOAD_FILE?
INSERT INTO ImageTable(PHOTO) VALUES(LOAD_FILE('E:/wamp64/bin/mysql/mysql5.7.14/data/test.jpg'));
Is what I am using. This enter NULL into the table. MySQL is also under this path. Does the path have to be relative to something? I am using the command line.
data:image/jpeg;base64but it is too long to insert using the command line. Any tips on that?