Hello, I have 2 files: 1. index.php 2. upload.php On index.php i have: <form action="/upload.php" method="POST"> File: <input type="file" name="uploaded" /><br/> <input type="submit" /> </form> HTML: but i need a code for upload.php that will encode the uploaded file to a base 64 string. Thanks,
http://javacozmic.tumblr.com/post/2158314267/php-base64-class That should do it. The encrypt method returns a base64ed string.