After generating a javascript ArrayBuffer from a FileReader ReadAsArrayBuffer method on a jpeg file, I am attempting to access the UInt32 array of the buffer and send it to a WCF service for insertion into a server database.
I came across an example on Stack Overflow (byte array method) where a UInt32 array is converted to a byte array, which seems like it would be suitable for my needs.
However, I'm struggling to access the [[Uint8Array]] of my arrayBuffer variable in order to send it to the WCF service. I have attempted various methods such as:
var arrayBuffer = reader.result[[Uint8Array]];//nope
var arrayBuffer = reader.result[Uint8Array];//nope
var arrayBuffer = reader.result.Uint8Array;//nope
var arrayBuffer = reader.result[1];//nope
If anyone has any ideas or suggestions on how to properly access the [[Uint8Array]], please share. Whenever I send the entire ArrayBuffer to the WCF Service, I receive a 0 byte array, making it unreadable.
Thank you,
Pete