When working on the Server in WebApiController, I have the following Byte array:
private Byte[] bytes = new Byte[21];
Once it is filled, it looks like this:
bytes = new byte{127,253,159,127,253,223,127,253,255,127,252,63,0,1,192,127,252,255,127,253,191};
I am aware that this will be a string representation:
111111101011111111111001111111101011111111111011111111101011111111111111111111100011111111111100000000001000000000000011111111100011111111111111111111101011111111111101
However, when receiving a response from the server on the client side, the array appears as:
f/2ff/3ff/3/f/w/AAHAf/z/f/2/
This is in base64 format. How can I convert this back to a string type equivalent to:
111111101011111111111001111111101011111111111011111111101011111111111111111111100011111111111100000000001000000000000011111111100011111111111111111111101011111111111101
Please assist me in finding a solution to this issue. Implementation in JS or AngularJS would be greatly appreciated.