In a previous post someone asked if the FileReader API could be used in Velo and someone else replied with an example:
$w . onReady ( function ()
{
const fileReader = new FileReader ();
fetch ( "c:\\a.png" )
. then ( response => response . blob ())
. then ( blob => fileReader . readAsArrayBuffer ( blob ));
fileReader . onload = **function** () {
// your buffer array here. But why you need it? )))
console . log ( fileReader );
}
})
Unfortuntaley, it doesn’t work for me. I tried using a PNG file on my hard disk and the result is an empty array.