// if the buffers contain text buffer.toString(encoding) // encoding = 'utf-8' // if you know how many bytes the buffer contains then buffer.toString(encoding, 0, numberOfBytes) // numberOfBytes = 12