using partBegin, end, data and error; changed from string to Buffer; commented out the replace of \r\n; substr using boundary + 2 and not boundary + 4