Okay, basically I\'ve developed a simple image upload system. The user selects a local image (using the HTML5 File / FileReader API) and has the ability to crop it before confir
You have to replace space with + if your base64Image have space char, then you have to remove data:image/png;base64, from the beginning of the base64Image. Unless you replace space char, you can't get correct Image. then you can use Base64 decode
yourBase64String = yourBase64String.replace(' ', '+');
yourBase64String = yourBase64String.substring(22);