1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
solved by converting the file from s3 to Uint8Array - example code
fs.open(filename, 'r', function (err, fd) {
var buffer = Buffer.alloc(1);
var data = new Uint8Array(fileSize);
var n = 0
while (true) {
var num = fs.readSync(fd, buffer, 0, 1, null);
if (num === 0)
break;
data[n] = buffer[0]
n += 1
}
console.log(parseRecord(data));
});
not optimized, but working for me.
where filename
is the filename from s3, and fileSize
is the num of bytes of the file.
HTH for anyone is using open telemetry
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa