Convert a File to base64 String in JavaScript

The idea behind my concept is simple. Firstly pick the file which you want to convert from the system’s HDD using HTML5 file browser. Once the file is selected, read the file as binary string using the FileReader API. At last convert the binary string to base64 using JavaScript. Let’s See in detail:- Attach a … Continue reading “Convert a File to base64 String in JavaScript”