adspace
Answer Posted / Mamta Bisht
The Buffer class in Node.js is used to handle raw binary data. It allows JavaScript, which is designed to work with text, to perform low-level operations on data that is not necessarily textual. Buffers are useful for working with network connections and file I/O, as well as for handling image, audio, and video data. Creating a Buffer instance is achieved by using the static method Buffer.alloc(), Buffer.from(), or Buffer.Buffer(array).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers