title: Base64 encode uploaded file then save in database
body: <p>I want to base 64 encode uploaded file then save this into Blob type column of a table in MySQL database.</p>
  
  <p>I have tried built in PHP function base64_encode with file variable but this does not seem to work.</p>
  
  <p>Is there a way we can do this?</p>
  
  <p>The reason is that I do not want to use moveuploaded file into a folder.</p>
  
  <p>Thank you.</p>