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