You can insert binary data into a bytea column using a "hex escaping"
Code:
INSERT INTO my_table (id, picture)
VALUES
(42, decode('89504'));
Alternative ways of specifying a "binary literal" are shown in the manual:
http://www.postgresql.org/docs/curre...pe-binary.html
If you already have images in that table, you can use pg_dump (SQL format) to generate the sample SQL statements.