From: | Alfredo Rico <alfredorico(at)gmail(dot)com> |
---|---|
To: | Kris Jurka <books(at)ejurka(dot)com> |
Cc: | Russell Francis <rfrancis(at)ev(dot)net>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: How to retieve binary data (bytea) without problem ? |
Date: | 2005-09-29 18:37:40 |
Message-ID: | 89cc056d05092911376050d6bc@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Thank you Kris, I was absolutely confused about this situation.
I'll switch to Blob objects because increasing the JVM heap could harm
perfromance...
Kind Regards.
Alfredo Rico,
On 9/29/05, Kris Jurka <books(at)ejurka(dot)com> wrote:
>
>
>
> On Thu, 29 Sep 2005, Alfredo Rico wrote:
>
> > Your suggest is very correct and in fact it works very well but only if
> the
> > file size is under 10 MB,
> > The problem happens just at moment to execute:
> > InputStream ins = rs.getBinaryStream( 1 );
> >
>
> The JDBC driver can stream data going to the server (setBinaryStream), but
> cannot stream data returning from the server (getBinaryStream) because of
> protocol limitations. You have two options:
>
> Switch from using bytea to large objects (Blobs). Large objects were
> designed to work with much larger data sizes and have a complete streaming
> interface.
>
> Increase the JVM's heap size. Since you are using netbeans and you
> haven't received many helpful suggestions here, you might try a netbeans
> specific list for suggestions on how to accomplish this.
>
> Kris Jurka
>
From | Date | Subject | |
---|---|---|---|
Next Message | Vsevolod (Simon) Ilyushchenko | 2005-09-29 20:03:16 | Intermittent I/O error? |
Previous Message | Heikki Linnakangas | 2005-09-29 17:43:29 | Re: XADataSource implementation |