Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai...
when i tried to store a base64 converted string of a bitmap image to mysql database throws an exception ex = {"Packets larger than max_allowed_packet are not allowed."}..what should i do ?
the database field is VARCHAR(1000)..

Regads JAyesh
Posted
Comments
CHill60 1-Mar-14 10:37am    
As an aside, I don't really think you should be trying to store an image in a varchar(1000) column! Did you mean to store the image location there and just save the image to disk?
Sergey Alexandrovich Kryukov 1-Mar-14 13:42pm    
Varchar?! That was a weird idea!.. :-)
—SA

1 solution

When you get an error like this, the first thing to do is: feed it to Google.
A quick check[^] gives quite a few (more than 12,000!) hits on teh subject - most of them referring to the packet size, and basically you increase it: http://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900