The Mysql blob field is for pictures, and text can be used for general data.

http://www.sowsoy.com/topics-374.html


BLOB type size limit in

    MySQL MySQL's maximum storage capacity for LongBlob type fields is limited to 1M by default, that is, if you want to store binary large objects larger than 1M, you need to modify The size of the MySQL database so that it can support a larger binary capacity. The following settings can be added in the my.cnf/my.ini file:

[mysqld]
set-variable = max_allowed_packet=16M


  Field type maximum length (bytes) Byte range storage requirements
TinyBlob 255 0 to 28-1 The length of the value plus 1 byte
Blob for record length 65K 0 to length of 216-1 value plus 2 bytes for record length
MediumBlob 16M 0 to length of 224-1 value plus 3 words for record length Section
LongBlob 4G 0 to 232-1 The length of the value plus



the meaning of the 4-byte BLOB used to record the length

  BLOB (binary large object), used to store the field type of the binary large object.

  A BLOB is often a large file. A typical BLOB is a picture, a sound, or a video file. Due to their size, they must be handled in a special way (eg: uploading, downloading, or storing in a database).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326693652&siteId=291194637