How to insert a file in MySQL database?

后端 未结 4 943
青春惊慌失措
青春惊慌失措 2020-11-29 05:18

I want to insert a file in MYSQL database residing on a remote webserver using a webservice.

My question is: What type of table column (e.g. varchar, etc.) will stor

4条回答
  •  被撕碎了的回忆
    2020-11-29 05:35

    File size by MySQL type:

    • TINYBLOB 255 bytes = 0.000255 Mb
    • BLOB 65535 bytes = 0.0655 Mb
    • MEDIUMBLOB 16777215 bytes = 16.78 Mb
    • LONGBLOB 4294967295 bytes = 4294.97 Mb = 4.295 Gb

提交回复
热议问题