it's s typo, sorry
ps.setBytes(2,bytes); ps.setString(1,id);
--View this message in context: http://postgresql.1045698.n5.nabble.com/bytea-problem-tp5014176p5014263.htmlSent from the PostgreSQL - jdbc mailing list archive at Nabble.com.