javascript - change image from path to embedded -
i have html image
<img src="/path/to/my/image.png" />
i want same content, embedded image
<img src="data:image/png:base64/xyzafasfasfafasfafasfasag">
can transformation javascript?
html: <img src="/path/..." id="image">
js: document.getelementbyid('image').src = 'data:image/png:base64/qweqwe...';
Comments
Post a Comment