Received: from www0r.netaddress.usa.net (www0r.netaddress.usa.net [204.68.24.47]) by hub.org (8.9.3/8.9.3) with SMTP id LAA86384 for ; Thu, 7 Oct 1999 11:51:57 -0400 (EDT) (envelope-from zhang-lan@usa.net) Received: (qmail 1817 invoked by uid 60001); 7 Oct 1999 15:51:55 -0000 Message-ID: <19991007155155.1816.qmail@www0r.netaddress.usa.net> Received: from 204.68.24.47 by www0r for [128.255.149.24] via web-mailer(MaintM3.3.0.77) on Thu Oct 7 15:51:55 GMT 1999 Date: 7 Oct 99 10:51:55 CDT From: LAN ZHANG To: pgsql-interfaces@postgresql.org Subject: Problems with large objects X-Mailer: USANET web-mailer (MaintM3.3.0.77) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id LAA86438 Hi, I am using the new jdbc6.5-1.2 to store the large objects. The code is the following: LargeObjectManager lom = ((postgresql.Connection)con).getLargeObjectAPI(); System.out.println("creating blob to store image..."); oid1 = lom.create(); LargeObject blob = lom.open(oid1); blob.write(buf,0,buf.length); blob.close(); But when it execute the oid1=lom.create(), it gave me this error message: FastPath protocol error: Z The old jdbc6.5-1.2 works fine for this program. -- Lan ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1