title: how to convert string to bytes in javascript
body: <p>I  have a string value like <code>1,2,3</code> and i need convert to byte value like <code>[1,2,3]</code>?</p>
  
  <p>how to bind  javascript byte  to  C# <code>Byte[]</code> array</p>
  
  <pre><code>const file = e.files[0];
  var reader = new FileReader();
  reader.readAsArrayBuffer(file.rawFile);
  reader.onload = function () {
       var strBytes = new Uint8Array(reader.result).join();
       var byte=???;
  }
  </code></pre>
  
  <p>thanks</p>