Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

packet size too large

843859Jul 12 2009 — edited Nov 20 2014
Hi,

I got a annoying problem with my MySQL-DB. I just want to store some images (onyl up to 1mb) in this db.
The problem is, that the following error occur :
com.mysql.jdbc.PacketTooBigException: Packet for query is too large (2095865 > 1048576).
I can't change this property so easy ... so is there a way to set the packet size of the SerialBlob I currently use
or to use an other object like a ByteArrayInputStream?

regards,

Olek
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2009
Added on Jul 12 2009
9 comments
233 views