1. Home
  2. Home
  3. Documentation
  4. Data types
  5. Large objects
Last reviewed Edit this page on GitHub

Large objects

Large objects are supported in the standard JDBC specification. However, that interface is limited, and the API provided by PostgreSQL® allows for random access to the object’s contents, as if it were a local file.

The org.postgresql.largeobject package provides the libpq C interface’s large object API to Java. It consists of two classes: LargeObjectManager, which deals with creating, opening, and deleting large objects, and LargeObject, which deals with an individual object. For an example usage of this API, see Processing Binary Data in JDBC .