카테고리 없음

테스트

hyuckkim 2025. 4. 12. 14:43
asdf

 

https://stackoverflow.com/questions/246801

 

How can you encode/decode a string to Base64 in JavaScript?

I have a PHP script that can encode a PNG image to a Base64 string. I'd like to do the same thing using JavaScript. I know how to open files, but I'm not sure how to do the encoding. I'm not used to

stackoverflow.com

 

<a href="javascript:(()=>{b64='aGVsbG8sIHdvcmxkIQ==';document.querySelector('*').innerHTML = decodeURIComponent(escape(window.atob(b64)));})();">asdf</a>