PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Storing Images In MySQL

Note: This article has been replaced by Storing Images in MySQL Revisited (by Quentin Zervaas, 2010). We've left this article here for historical purposes, but we strongly recommend you use the newer article instead.

What Is A Blob?

Binary Large Object. In short, a blob is a field type for storing Binary Data. MySQL has four BLOB types:

  1. BLOB
  2. TINYBLOB
  3. MEDIUMBLOB
  4. LONGBLOB

For more information on this we highly recommend you read the MySQL manual section on BLOBs.

In This Article


Article History

Apr 21, 9804
Initial article version
Jan 18, 2008
Updated listing 5 to not include non-existent conf.php