Kohana PHP, ORM and MySQL BLOBs?

It turns out that, in this case, I was using the BLOB data type The BLOB data type truncates data at 65535 characters (silently, without throwing an error! ) I've upped it to a MEDIUMBLOB (which has a max length of 16777215 characters), and it seems to work OK!

It turns out that, in this case, I was using the BLOB data type. The BLOB data type truncates data at 65535 characters (silently, without throwing an error! ) I've upped it to a MEDIUMBLOB (which has a max length of 16777215 characters), and it seems to work OK!

Wild guess, but: probably because the kohana model layer inserts all data as character data instead of binary, which will cause you troubles when saving/retrieving BLOB objects.

I'm trying to create and retrieve a BLOB in a MySQL table via Kohana's ORM library. I've verified that the data is OK at this point by outputting it to a file. However, when I retrieve the data it comes out corrupted.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions