MySQL UDF gcc -Wall -I/usr/local/include -shared -o base64.so -c base64.c SELECT base64encode('data,binary,text,...'); SELECT base64decode('base64edstrings'); this code based on PHP's base64.c takeshi@softagency.co.jp