2

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.

2 Answers 2

5

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! Also, I appreciate the link!
0

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

1 Comment

Thanks! By the way what is the max size?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.