X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 958EAD1EA15 for ; Mon, 5 Apr 2004 09:51:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 81868-09 for ; Mon, 5 Apr 2004 06:51:51 -0300 (ADT) Received: from FE-mail04.sfg.albacom.net (FE-mail04.albacom.net [213.217.149.84]) by svr1.postgresql.org (Postfix) with ESMTP id BF600D1E9F8 for ; Mon, 5 Apr 2004 06:51:20 -0300 (ADT) Received: from expot.it (217.221.81.76) by FE-mail04.sfg.albacom.net (7.0.009) id 406E6A19000159AD for pgsql-jdbc@postgresql.org; Mon, 5 Apr 2004 11:51:54 +0200 Message-ID: <40712C3B.4070606@expot.it> Date: Mon, 05 Apr 2004 11:51:55 +0200 From: Edoardo Ceccarelli Reply-To: eddy@expot.it Organization: EXPOT User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: blob without largeobject api Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/29 X-Sequence-Number: 9758 I need to insert a Blob into a table without using org.postgresql.largeobject.*; classes, that's because the db pool I'm using (Resin) doesn't allow me to cast: ((org.postgresql.PGConnection)db) to get access at the Postgres LargeObjectAPI. // Generates ClassCastExep. LargeObjectManager lom = ((org.postgresql.PGConnection)db).getLargeObjectAPI(); Since I'd like to keep using the same type of connection (without changing the pool manager or directly connecting to the db) is there a way to insert Blob (oid) data into a table without using the large object api? Looked in the examples under src/interfaces/jdbc/ but all blob examples uses that type of access. Thank You -- Edoardo Ceccarelli