Forum Discussion

eflyerman's avatar
Occasional Contributor
7 years ago

RESTful API testing requires base64 parm - btoa() is unknown function

How can I encode a binary file to base64 for the API parm?


I found but it requires dotnet and the desktop license for TC.  We are only using the web testing so the example fails.


Is there anyway to access the native javascript window.btoa() function within javascript test scripts?



3 Replies