<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Large Objects</title><meta content="DocBook XSL Stylesheets V1.78.1" name="generator"><link rel="home" href="index.html" title="The PostgreSQL™ JDBC Interface"><link rel="up" href="ext.html" title="Chapter 9. PostgreSQL™ Extensions to the JDBC API"><link rel="prev" href="geometric.html" title="Geometric Data Types"><link rel="next" href="listennotify.html" title="Listen / Notify"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Large Objects</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="geometric.html">Prev</a> </td><th align="center" width="60%">Chapter 9. <span class="productname">PostgreSQL</span>™ Extensions to the <acronym class="acronym">JDBC</acronym> <acronym class="acronym">API</acronym></th><td align="right" width="20%"> <a accesskey="n" href="listennotify.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="largeobjects"></a>Large Objects</h2></div></div></div><p> Large objects are supported in the standard <acronym class="acronym">JDBC</acronym> specification. However, that interface is limited, and the <acronym class="acronym">API</acronym> provided by <span class="productname">PostgreSQL</span>™ allows for random access to the objects contents, as if it was a local file. </p><p> The org.postgresql.largeobject package provides to Java the <span class="application">libpq</span> C interface's large object <acronym class="acronym">API</acronym>. It consists of two classes, <code class="classname">LargeObjectManager</code>, which deals with creating, opening and deleting large objects, and <code class="classname">LargeObject</code> which deals with an individual object. For an example usage of this <acronym class="acronym">API</acronym>, please see <a class="xref" href="binary-data.html#binary-data-example" title="Example 7.1. Processing Binary Data in JDBC">Example 7.1, “Processing Binary Data in <acronym class="acronym">JDBC</acronym>”</a>. </p></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="geometric.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="ext.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="listennotify.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Geometric Data Types </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Listen / Notify</td></tr></table></div></body></html>