cap-community icon indicating copy to clipboard operation
cap-community copied to clipboard

"undefined" chained with Buffer data

Open rlopmar opened this issue 3 years ago • 0 comments

https://github.com/sapmentors/cap-community/blob/c5ac508d41d91895cea74fa38dcc09d73c3b565b/examples/media-handling/srv/media-service.js#L18

Hi, in the media-service example, if we save the Buffer chunks like in the mentioned line 18, the Buffer data gets concatenated with an "undefined" string (please check the image).

This can be solved changing that line with content ? (content += dataChunk) : (content = dataChunk);

image

rlopmar avatar Feb 16 '22 17:02 rlopmar