In http://jdbc.postgresql.org/documentation/82/binary-data.html it says that the return from LargeObjectManager.create is a long, but the actual code seems to return an int, which is also what the read and write methods seem to want as OID. Is this a code or a documentation problem? The docs are the same for 8.3. David