-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: inserting a large byte[] truncates it to 64k!
PostPosted: Mon Jul 18, 2005 5:04 am 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137
Hibernate version: 2.1.8

Name and version of the database you are using:
MySQL 4.1.8-nt
JDBC Connector: 3.1.7


Hi,
I'm not sure whether this is a bug, and I think this is a settings problem, but I couldn't find the reason,

When I try to insert a large byte[] (which is a property of a hibernate mapped entity) only first 64k is inserted, and the rest is lost!

max_allowed_packet setting in MySQL serer is 1MB, but even a 100k file is truncated! :(

in DDL query for creating the table I've used BLOB for creating the property.

could anyone help me solve the problem!?

regards,
Amir

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 6:46 pm 
Newbie

Joined: Wed May 25, 2005 1:47 pm
Posts: 9
What is mysql type of the blob field in the db? Sounds to me like its BLOB rather than MEDIUMBLOB or LONGBLOB.
http://dev.mysql.com/doc/mysql/en/stora ... ments.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.