Question

In my php.ini file my max size is 1 mb. However, when I insert a blob into my mysql database it cuts it off at 64 kb. How can I increase the file max size? Note: The image is literally cut off at 64 kb it displays a sliver of the image.

Was it helpful?

Solution

You might want to consider a MEDIUMBLOB, or even a LONGBLOB. For when a standard BLOB with it's maximum size of just 64kb just won't do.

BLOB max sizes are listed here :)

OTHER TIPS

If strict SQL mode is not enabled and you assign a value to a BLOB or TEXT column that exceeds the column's maximum length, the value is truncated to fit and a warning is generated

Change your BLOB type to LONGBLOB

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top