Problems with large objects

From: LAN ZHANG <zhang-lan(at)usa(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problems with large objects
Date: 1999-10-07 10:51:55
Message-ID: 19991007155155.1816.qmail@www0r.netaddress.usa.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Allan Huffman 1999-10-07 13:08:11 Help with PostgreSQL
Previous Message Peter Mount 1999-10-07 08:40:02 RE: [INTERFACES] Problem accessing large object via servlet