I have a table with
create table pictures(
pic_ID int,
picture blob,
primary key (pic_ID)
);
I use INSERT INTO pictures VALUES (1, load_file('/home/hai/Pictures/icon.jpeg'));
and then select * from pictures;
displays this
Why it has NULL in my picture column ?
input type='file'
for uploading an image then you must haveenctype='multipart/form-data'
attribute in form tag. eg- – Abhishek Kamal Apr 15 '19 at 08:55