I have javascript code : var win = ("data:image/svg xml;base64," Utils.encode64(svg)); in HTML5. I want convert it into data:image/png;base64,.....
I tried with win= win.replace('data:image/png;base64,',''); But replaces the xml to png, but the it does not display the image correctly and giving an error message.
plz help to out..