pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edoardo Ceccarelli <eddy@axa.it>
To: pgsql-admin@postgresql.org
Subject: blob without largeobject api
Date: Mon, 05 Apr 2004 14:55:12 +0200
Message-ID: <40715730.3090902@axa.it> (raw)

I need to insert a Blob into a table without using 
org.postgresql.largeobject.*; classes, that's because the db pool I'm 
using (Resin) doesn't allow me to cast: 
((org.postgresql.PGConnection)db)  to get access at the Postgres 
LargeObjectAPI.

// Generates ClassCastExep.
LargeObjectManager lom = 
((org.postgresql.PGConnection)db).getLargeObjectAPI();

Since I'd like to keep using the same type of connection (without 
changing the pool manager or directly connecting to the db) is there a 
way to insert Blob (oid) data into a table without using the large 
object api?

Looked in the examples under src/interfaces/jdbc/ but all blob examples 
uses that type of access.

Thank You

-- 
Edoardo Ceccarelli



Message-ID: <40715730.3090902@axa.it>
Permalink:  ../40715730.3090902@axa.it/
Also on:    postgresql.org/message-id/40715730.3090902@axa.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: eddy@axa.it
  Subject: Re: blob without largeobject api
  In-Reply-To: <40715730.3090902@axa.it>
  References: <40715730.3090902@axa.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox