title: MySQL Data too long for column 'XX' at row 'XX' - LongBlob Column
body: <p>I have a C# (VS2010) windows application which calls a MySQL(Version 5.6.17) database. In database I am storing files. I have defined column LONGBLOB to store files. </p>
  
  <p>When I try to insert data to my table I'm getting the error "Data too long for column 'XX' at row 'XX'". I found that by increasing  max_allowed_packet this problem can be solved. But I still get the same error after increasing value of  max_allowed_packet.</p>
  
  <p>I cannot even insert a 70 KB file. I can only insert only small files as 20-30KB</p>
  
  <p>I cannot save files in a hard drive and store only path in the database due to some restrictions. So I cannot store path in database.</p>
  
  <p>Please help me.
  Thanks </p>