문제

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.

도움이 되었습니까?

해결책

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 :)

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top