1 message in com.mysql.lists.javaProblem with binary PreparedStatement
FromSent OnAttachments
Christian Schulz21 Jun 2000 04:09 
Subject:Problem with binary PreparedStatement
From:Christian Schulz (Sch@Devcon-Mail.de)
Date:06/21/2000 04:09:36 AM
List:com.mysql.lists.java

Hello,

I've got a Problem with binaries/mySQL/mm.mysql-JDBC-Driver.

I try to insert a binary (e.g. a file) into MySQL using the setBinaryStream(...) method of the PreparedStatement of mm.mysql-JDBC-Drivers. It works fine when I try it with a binary of 20 KB, but the following exception occurs, when I try it with a binary of 70 KB (or above): _____

java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.gjt.mm.mysql.Buffer.writeBytesNoNull(Buffer.java:310) at org.gjt.mm.mysql.PreparedStatement.executeUpdate(PreparedStatement.java:291) [...] _____

Has anybody tried this or has anybody a solution for this ?

Thanks !

Bye bye

P.S. I tried V2.02 and V1.2c of the JDBC-Driver