Need help to know how to convert the bytearray data to base64/ string.

Dear Team,

I would like to know how to convert a byte array that is received as a JSON input to a base64 or a string using powershell. I tried to check couple of discussions on conversion but that is through a file. Since, I already have the byte array data how would I convert it to first base64 and then to a string?


Raj D