arraybuffer to base64 code example
Example 1: convert buffer to base64 javascript
var buffer = Buffer.from('hello');//create a buffer of the text "hello"
//right now, buffer ==
var string64 = buffer.toString('base64');
//the .toString operator can set encoding
//string64 == 'aGVsbG8='
Example 2: byte array to base64 c#
byte[] temp_backToBytes = Convert.FromBase64String(temp_inBase64);