Re: Max size for bytea type - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Max size for bytea type
Date
Msg-id Pine.BSO.4.64.0701210005320.8274@leary2.csoft.net
Whole thread Raw
In response to Max size for bytea type  ("Do, Leon \(Leon\)" <leondo@alcatel-lucent.com>)
Responses Re: Max size for bytea type
List pgsql-jdbc

On Fri, 19 Jan 2007, Do, Leon (Leon) wrote:

> Hello,
>

When starting a new thread, please don't reply to some other random
message on the list.

> Can someone explain why I cann't get bytea data of more than 1998 bytes?
> Below 1998 size is ok but I got exception if the size is at and above
> 1998.  I used jdbc-8.1-407.jdbc3.jar.
>

Could you provide a complete test case.  What you've written below isn't
entirely clear about what's going on.  I believe bytea decoding
is done correctly.  Perhaps you are doing something like calling
getBinaryStream on a column that is not bytea?

Kris Jurka


pgsql-jdbc by date:

Previous
From: "Michael Schmidt"
Date:
Subject: pg_dump in PostgreSQL version 8.2 not working in Java app
Next
From: Ken Johanson
Date:
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?