Answers for "decode base64 to string"

0

decode base64 to string

const fromBase64toString = (data) => {
    return decodeURIComponent(
      atob(data)
        .split("")
        .map(function (c) {
          return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
        })
        .join("")
    );
  };
Posted by: Guest on October-16-2021

Code answers related to "decode base64 to string"

Browse Popular Code Answers by Language