I have a problem with one SQL statement. I am trying to update something in a table which is a Blob field with a pdf. And it's not working.
UPDATE employees
SET resume = LOAD_FILE('C:\Users\gaby\Desktop\sample_resume.pdf')
WHERE id = 1;
If I use the above command the result is null. If I use the below command the result is not null, there is a pdf but it is empty.
UPDATE employees
SET resume = 'C:\Users\gaby\Desktop\sample_resume.pdf'
WHERE id = 1;
I can do this update using JDBC, it works perfect. But I want to do it from workbench too.
Thanks in advance!