in your mysql configuration file /etc/my.cnf
change the variable set-variable = max_allowed_packet=1M to 5M or 10M restart the mysqld server regards. Slava On Mon, 2003-07-28 at 21:40, Roland Carlsson wrote: > Hi! > I having trouble to get an byte[] larger than 1MB into my Mysql-database. > Smaller files works just fine. > > The column in the database is longblob > > I declared the column in the repository.xml as a longvarbinary since the > object is an byte[]. > > I get this error-message: > > "Communication link failure: com.mysql.jdbc.PacketTooBigException" > > I read in the arcives and the jdbc driver of Mysql got some bad critic (in > the context of blobs) so I wonder if this is a problem of the mysql-driver > or if anyone can say that this should work? > > Thanks in advance > Roland Carlsson > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
