I want to insert image into a table like
CREATE TABLE XX_SAMPLE(ID INT
,IMAGE BLOB);
So can you help out form how to insert image into the above table.
Please try below code
INSERT INTO xx_BLOB(ID,IMAGE) VALUES(1,LOAD_FILE('E:/Images/jack.jpg'));
You should use LOAD_FILE like so:
LOAD_FILE('/some/path/image.png')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With