Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
I want to encode a PNG image to Base64 string using JavaScript. But cannot able to do that. Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

Basically, in able to do encoding you can use btoa() and atob(). btoa() helps in accepts the string whereas atob() helps you to return the string.

I hope this will help.

Want to become a Java expert? join Java Training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer
asked Aug 10, 2019 in Web Technology by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...