title: Access Uint8Array in javascript ArrayBuffer
body: <p>I've got a javascript ArrayBuffer generated from a FileReader ReadAsArrayBuffer method on a jpeg file.</p>
  
  <p>I'm trying to access the UInt32 array of the ArrayBuffer and send to a WCF service (ultimately to be inserted into a database on the server). </p>
  
  <p>I've seen an example here on stackoverflow (<a href="https://i.stack.imgur.com/DoGMs.jpg" rel="noreferrer">byte array method</a>) where a UnInt32 array is converted to a byte array which I think would work.</p>
  
  <p>I'm trying to access the [[Uint8Array]] of my arrayBuffer variable below so I can send it to the WCF, but I'm not having much luck.  I've tried:</p>
  
  <pre><code>   var arrayBuffer = reader.result[[Uint8Array]];//nope
       var arrayBuffer = reader.result[Uint8Array];//nope
       var arrayBuffer = reader.result.Uint8Array;//nope
       var arrayBuffer = reader.result[1];//nope
  </code></pre>
  
  <p>Any ideas on how to access that [[Uint8Array]] would be appreciated.  When the entire ArrayBuffer is sent to WCF Service I get a 0 byte array -- cant read it </p>
  
  <p>Thanks</p>
  
  <p>Pete</p>
  
  <p><a href="https://i.stack.imgur.com/DoGMs.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/DoGMs.jpg" alt="enter image description here"></a></p>