Theres no need for all the base64 unless your storing the photo in an sql database. Sending the image to the server should be fine without it, storing the image on the server as a file should be fine without it, and sending the image back to the browser should be fine... without it.
You say these are profile pictures. Rename the picture to something unique - say, profileimageuserid.ext and ideally, upload the image to a CDN.
Same with the videos / files. None of these need to be Base64 encoded if their just being stored as regular files on a server or CDN.