setBlob(int, Blob) with large blob

From: Tore Halset <halset(at)pvv(dot)ntnu(dot)no>
To: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: setBlob(int, Blob) with large blob
Date: 2013-09-09 10:14:08
Message-ID: 85FF3D74-E416-43FB-B98F-FFA6FCB01B67@pvv.ntnu.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello.

I am using setBlob(int, Blob) with a 3.2GB large blob, but got the following stack trace.

java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:327)
at org.postgresql.jdbc2.AbstractJdbc2Statement.setBlob(AbstractJdbc2Statement.java:3073)

This pull-request fixes this problem for me.
https://github.com/pgjdbc/pgjdbc/pull/83

Regards,
Tore Halset.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lachezar Dobrev 2013-09-10 09:17:36 Regression: Problems with Timestamp arguments
Previous Message dmp 2013-09-07 00:35:45 Re: CopyManager API?