I get my value like this
var dataView= new DataView(imgData.array.buffer);
var st = dataView.getUint8(1).toString(10);
Which gives me the value 216 decimal. How can I transform varibale st to (hex 0xD8).
When i have to 0xD8 how can I transform it to short and long!
I guess this is the way to go: