insert into category(category_name,category_image) values('tablette', bytea('D:\image.jpg'));
The above solution works if istea column type
insert into category(category_name,category_image) values('tablette', lo_import('D:\image.jpg'));
The above solution works if the column type is oid, i.e. Blob
insert into category(category_name,category_image) values('tablette',decode('HexStringOfImage',hex));
. - HexString . - hex . bytea postgres.