1 Answer
- Newest
- Most votes
- Most comments
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
answered 2 years ago
Relevant content
- asked 2 months ago
- asked 9 months ago
- asked 2 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 11 days ago