Re: Appending to a large object

From: Barry Lind <blind(at)xythos(dot)com>
To: ole-usenet-08(at)gmx(dot)net
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Appending to a large object
Date: 2003-08-07 15:33:18
Message-ID: 3F32713E.4010201@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Ole,

If you look at the source you will see that there is a seek method. I
don't know why it isn't in the docs.

thanks,
--Barry

Ole Streicher wrote:
> Hi Barry,
>
> Am Donnerstag, 7. August 2003 04:55 schrieb Barry Lind:
>
>>The outputstream interface is for reading only. If you want to append
>>you are going to need to use the LargeObject interface. This is
>>documented in the PostgreSQL Programmer's Guide. See the section
>>titled: PostgreSQL Extensions to the JDBC API.
>
>
> I did; but I couldn't find what I need:
>
> 5.7.3.1 Methods
>
> * public int getOID() - doesn't help
>
> * public void close() - doesn't help
>
> * public byte[] read(int len) / public int read(byte[] buf, int off, int len)
> - doesn't help since I need writing, not reading
>
> * public void write (byte[] buf) - doesn't help since I cannot specify the
> offset
>
> * public void write(byte[] buf, int off, int len) - doesn't help since the
> offset mentioned is within the array, not within the LargeObject.
>
> What I expected was a function like "seek()", but I couldn't find it there.
> So, how can I append to an existing stream? Is there a function I have just
> overseen? (PostgreSQL 7.3.2 Programmer's Guide)
>
> Regards
>
> Ole
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-08-07 15:33:36 Re: more bad markup -- jdbc.sgml
Previous Message Tom Lane 2003-08-07 15:11:37 Re: Dropping database in alternative space