Dim prom As BANanoPromise = BANano.Await(GetFileAsArrayBuffer("http://127.0.0.1:8089/assets/banano1.jpg"))
If prom = False Then 'ignore
Log("Woopsie")
Else
' create a Uint8Array 'view' (an array of bytes) to access the ArrayBuffer
Dim Uint8View As BANanoObject
' can be Uint8Array, Uint16Array, Uint32Array or Float64Array
Uint8View.Initialize2("Uint8Array", prom)
' convert it to a B4J byte array so we can access it more easily
Dim bytes() As Byte = Uint8View
For i = 0 To bytes.Length - 1
Log(bytes(i))
Next
End If