How to read data from buffer?
Pawel Kwiatkowski
Posts: 25 ✭
in Stream
I would like decode data from buffer 'data'.
I was trying use Buffer.from but with partial success.
Any ideas how should be done properly?
0
Answers
-
Hi @Pawel Kwiatkowski, it looks like there's two buffers in this example that match each other?
If this is the case, the first buffer of character codes can be converted into a string by using the following function:
String.fromCharCode(...field.split(" "))
Check out an example of this in use:
0