java+mysql存储图片或其它大对象到数据库时的两个问题
1、当图片文件超过1M的时候,出错如下:JDBC错误:Packet for query is too large (1298910 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.这是因为mysql默认一个包最大1M,需要修改my.ini...