I am receiving the Image as Base64 from the server. I want to decode and display the image. How do I decode base64 to Image ? I dont want to directly paste the base64 string into the image source as its taking alot of time to load the image and also not supported by few browsers.
Below is the code :
// Takes base64 string & returns Image
function decodeBase64Image(base64_string) { };
var Image = decodeBase64Image(base64_string);
<img src={Image} />