A default mysql installation only allows upto 1Mb to be stored into the database. You can solve this in two ways
- ) Edit your my.cnf file to allow greater than 1Mb limit, see mysql.com for details on that.
- ) Move your file galleries to file system storage.
Personally I always use file system storage, much safer and I believe wont lead to database corruption as easily.