1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 6 mois
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 6 mois