Referencia loadBytes()

loadBytes()

This method is suitable for fetching files up to size of 64MB.

Ejemplos

Sintaxis

loadBytes(file, [callback], [errorCallback])

Parámetros

file
String|Request: name of the file or URL to load
callback
Function: function to be executed after loadBytes() completes
errorCallback
Function: function to be executed if there is an error

Returns

Promise<Uint8Array>: a Uint8Array containing the loaded buffer

Referencias Relacionadas