Forum Discussion

eflyerman's avatar
eflyerman
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 https://support.smartbear.com/viewarticle/42195/ 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?

 

Eddie

3 Replies