I have a Postgresql table to store image filenames and images:
create table images (imagenme text, img bytea);
I am trying to insert an image using pgAdmin 4 SQL Tool:
insert into images(img) values (bytea('C:\Users\username\Desktop\image_files\img1_1_1.jpg'));
When I run this in SQL Tool, I get this error:
ERROR: invalid input sytax for type bytea
LINE 1: insert into images(img) values (bytea('C:\Users\username\Desktop...
^
SQL state: 22P02
Character: 39
What am I doing wrong?