I am trying to insert an image into a MySQL database however I keep receiving this error;Error Code: 1048.
Column 'image' cannot be null. This is the code I am using.
create table test_img (
id int(10) not null AUTO_INCREMENT PRIMARY KEY,
name varchar(25) not null default '',
image blob not null
)
INSERT INTO test_img(ID,IMAGE) VALUES(1,LOAD_FILE ('C:\\human_centered_design_infographic.jpg'));