Is there a way to convert url to base64 coding?

the function of online preview of uploaded pictures in the project uses the plug-in hhuploadify to see that the url address of the source code is formed through src = window.URL.createObjectURL (file); to form url and then preview online. Is there a way to directly convert file objects into base64 coding without having to regenerate url in such a format as blob:// or whether the generated url like blob:// can be converted into base64 coding

?
Mar.05,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bee35e-31bf7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bee35e-31bf7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?