PhpRiot
Follow phpriot on Twitter
Sponsored Link
Download Article
Download this article in PDF format with all listings and files.

Includes 1 bonus listing!

Price: $5.00 AUD
(Approx. $5.00 USD)

More information
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
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Storing Images in MySQL Revisited

Summary

In this article I showed you how to store images in MySQL. We began by looking at MySQL's blob data type, used for storing binary data.

Next I showed you how to create a file upload form, as well as how to process the file upload.

Next we created a script to send an image to the user's browser, including setting the correct HTTP headers.

Finally, we created a list of previously uploaded images so they can be viewed.

Further Reading

Other Options

In This Article



Bonus listings: 1 available