Convert Base64 to image file with javascript
问题 Does anyone know of any simple javascript that I can use to turn a base64 string into an image (jpg format preferably), so that I can save the image to a file? This is for a signature pad application. I can get the signature into a base64 format, but need to save the signature as an image file to use for embedding into a Crystal Report. 回答1: I have tried this method in a JSP page to print the image from a base64 string, I guess this should hold good for javascript too. Do not have sample data