title: Convert base64 string into byte array through javascript
body: <p>I want to convert "base64" string into bytes array through the javascript.</p>
  
  <p>I received string from the URL like.</p>
  
  <pre><code> ("data:image/jpeg;base64,/9j/4QN6RXhpZgAASUkqAAgAAAAIA)
  </code></pre>
  
  <p>And i want to convert the string into bytes array. because i need this byte array to send Rest API endpoint. The rest API Content-type=application/octet-stream.</p>