X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5A410D7E1D for ; Mon, 3 Oct 2005 18:10:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33814-07 for ; Mon, 3 Oct 2005 21:10:18 +0000 (GMT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by svr1.postgresql.org (Postfix) with ESMTP id C772CD9EC5 for ; Mon, 3 Oct 2005 18:10:19 -0300 (ADT) Received: by xproxy.gmail.com with SMTP id i30so244829wxd for ; Mon, 03 Oct 2005 14:10:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=UZo+FvbC+2rqu7e5gf8EW+6f/BtF+8a5KyEuC+idjY4CkCxBRKtVrIeyCYdsiiaLfv6CDZ3VjaYDU1ZrkcaiCQrb3qBxwaiD2D6n/Pop6/NjhqvjBKp3ezVxMfFb3UZuM3kviR+EWu62iBHuRNH8HmR1HPr6BCpNYhxopqreen4= Received: by 10.70.118.6 with SMTP id q6mr261067wxc; Mon, 03 Oct 2005 14:10:21 -0700 (PDT) Received: from ?138.232.9.2? ( [138.232.9.2]) by mx.gmail.com with ESMTP id i33sm3780699wxd.2005.10.03.14.10.20; Mon, 03 Oct 2005 14:10:21 -0700 (PDT) Message-ID: <43419E3A.5090307@gmail.com> Date: Mon, 03 Oct 2005 23:10:18 +0200 From: Muhlis Akdag User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: insert bytea data manually Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.563 required=5 tests=[AWL=0.023, FROM_ENDS_IN_NUMS=0.516, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200510/8 X-Sequence-Number: 13939 Hi, I have a question about bytea columns. I want manually select the column.. this looks like this..when I export it from pgadmin into a csv file.. "10";"PK\003\004\024\000\000\000\000\000\214\22453\341\24519\036\000\000\000\03.........." so how I can inert it back to the database manually.. like this.. insert into files (docid,file) values (1,'PK\003\004\024\000\000\000\000\000\214\22453\341\24519\036\000\000\000\03..........") but it brings error when i try this..? can sombody help me how i can extract bytea data and insert it back manually with SQL commands?