pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rafal Piotrowski (CSCS) <Rafal.Piotrowski@CSCS.CH>
To: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: LargeObject.write(byte[] buf)  method
Date: Tue, 23 Nov 1999 12:19:51 +0100
Message-ID: <383A7857.FB262E11@CSCS.CH> (raw)

Hi,

Configuration:
- PostgreSQL 6.5.1
- JDBC for JDK 1.2

Problem:

Why if the object is big (in my case 922176 bytes) the write(byte[]
buf)  method in LargeObject class fails. But if I use 
write(byte[] buf, int off, int len) and write data in junks for example
4096 bytes, everything is OK.

Does anyone have an idea why?

thanks,

RP
-- 
..............................................................................
:           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          :
..............................................................................



Message-ID: <383A7857.FB262E11@CSCS.CH>
Permalink:  ../383A7857.FB262E11@CSCS.CH/
Also on:    postgresql.org/message-id/383A7857.FB262E11@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: LargeObject.write(byte[] buf)  method
  In-Reply-To: <383A7857.FB262E11@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