for (var items in _selectedContexts) {
var downloadModel = __parsed[__parsed[items].toString().split("/")[1]][__parsed[items].toString().split("/")[2]];
var length = downloadModel["Value"].length;
var base64 = downloadModel["Value"];
var bytes = new Uint8Array(length);
while (length--) {
bytes[length] = base64.charCodeAt(length);
}
MessageToast.show(bytes.length);
}
How can I initialize a Uint8Array
in UI5? I always get "Uint8Array is not defined" in SAP Web IDE as an error message. Do I need to import any special libraries?
I'm also using the latest SAPUI5 version and Chrome for testing so it shouldn't be a problem I guess?