pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rafal Piotrowski (CSCS) <Rafal.Piotrowski@CSCS.CH>
To: pgsql-interfaces@postgresql.org
Subject: problem with getBytes
Date: Mon, 22 Nov 1999 19:10:05 +0100
Message-ID: <383986FD.A7C87D1F@CSCS.CH> (raw)

Hi,

Configuration:
- PostgreSQL 6.5.1
- JDBC for JDK 1.2

Problem:

I have a table which looks like this:
-------+-----------+---------------+---------------+--------------+------------
id:int | name:text | language:text | filename:text | comment:text |
content:oid
-------+-----------+---------------+---------------+--------------+------------
 1     |a name     |English        |a file name    |             
|1102724
-------+-----------+---------------+---------------+--------------+------------
The problem starts when I use getBytes("content"). I am getting the
following error:
  FastPath call returned ERROR:  lo_tell: invalid large object
descriptor (0)
So, as you can see the oid is not zero. Does anyone know what is going
on?

One more thing, setBytes method, does work, but only if the array of
bytes is not too big. (I don't know the exact size) :-(

thanks,

RP

P.S. Replay to my email address, please.
-- 
..............................................................................
:           Rafal Piotrowski             :
mailto:Rafal.Piotrowski@CSCS.CH   :
:          Research Scientist            :
http://www.cscs.ch/~rpiotrow      :
: Centro Svizzero di Calcolo Scientifico : Tel.: +41 (0)91 610
8211          :
:       Via Cantonale, Galleria 2        :       +41 (0)91 610 8315
(direct) :
:       CH-6928 Manno, Switzerland       : Fax:  +41 (0)91 610
8383          :
..............................................................................



view thread (5+ messages)  latest in thread

Message-ID: <383986FD.A7C87D1F@CSCS.CH>
Permalink:  ../383986FD.A7C87D1F@CSCS.CH/
Also on:    postgresql.org/message-id/383986FD.A7C87D1F@CSCS.CH

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: Rafal.Piotrowski@CSCS.CH
  Subject: Re: problem with getBytes
  In-Reply-To: <383986FD.A7C87D1F@CSCS.CH>

* 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