Hello everyone,

I have a need to convert a jpeg file to base64 format for storage in LDAP servers. I have a file upload script that I'm using to pass the value into base64_encode($file) but from the output I don't think it is doing what I want. Can anyone offer some insight / link / snippet on how to do this properly?