While uuencode and base64 are nice and handy, I'd still recommend just using mysql_real_escape_string()--it will save a tremendous amount of space compared to uuencode or base64--which will inflate the size quite a bit. (up to 50%-200% more iirc)
MySQL text fields are already binary safe, as are all other char fields. -- Respectfully, Nicholas Leippe Sales Team Automation, LLC 1335 West 1650 North, Suite C Springville, UT 84663 +1 801.853.4090 http://www.salesteamautomation.com .===================================. | This has been a P.L.U.G. mailing. | | Don't Fear the Penguin. | | IRC: #utah at irc.freenode.net | `==================================='