From: thhal at mailblocks.com (Thomas Hallgren) Date: Mon, 20 Jun 2005 09:06:05 +0200 Subject: [Pljava-dev] LargeObject In-Reply-To: <15C57556D2BBFDshun@datasection.co.jp> References: <15C57556D2BBFDshun@datasection.co.jp> <42B66ADD.5070602@mailblocks.com> Message-ID: Shunsuke, The LargeObject support in PL/Java is experimental and in the current version, the C-code will not be initialized (hence the error that you get). The code is there though, and if you want to play around with it, my guess is that the only thing you need to do in order to get it to work is to add the line: LargeObject_initialize(fcinfo); somewhere near the end of function Type_initialize in the file pljava/type/Type.c, recompile and try again. Regards, Thomas Hallgren Shunsuke Ikegami wrote: >Hello, > >I tried to use LargeObject from pljava. >Do you have some sample code? I cannnot find it. > >- pljava-1.1.0 >- psql (PostgreSQL) 7.4.7 >- java version "1.4.2_04" >- Fedora Core 2 > >--- I tried. --- > import org.postgresql.pljava.internal.LargeObject; > import org.postgresql.pljava.internal.Oid; > > > Oid oid = (Oid)rs.getObject(1); > Logger.getAnonymousLogger().info("oid.hashCode() : " + oid.hashCode()); > LargeObject largeObj = LargeObject.open(oid, LargeObject.INV_READ); > largeObj.close(); > >--- result. ---- >INFO: 20 6 05 13:42:21 test.LargeObjectTest oid.hashCode() : 19688167 >ERROR: java.lang.UnsatisfiedLinkError: _open > > > >Thanks > >Shunsuke >_______________________________________________ >Pljava-dev mailing list >Pljava-dev at gborg.postgresql.org >http://gborg.postgresql.org/mailman/listinfo/pljava-dev > >