THINGS NEVER TO DO.

  1. Store images in a database without a really good reason.
  2. Store them in BLOB fields, rather than MEDIUMBLOBs or even LONGBLOBs.
  3. Preconvert them to ASCII, rather than native binary, and ignore that your database is Unicode, and will inflate the images to eight times their size.
    • (Consequence, just so we’re clear: those images you’re storing now get cut off after 1.5 kilobytes, for no readily apparent reason. For comparison, your typical Flickr photo preview is over 50k.)

  4. Fail to document any of this.
  5. QUIT AND LEAVE ME TO FIX YOUR HORRIBLE HACKWORK.

Blaaah. I’m tired of computers. My hair is 10% whiter after today.