I know this has been a while, but wanted to respond in case you needed it. The contentBytes is indeed the base64 for your image. i.e. to view it you could enter it as a data URI for an image as data URI with the format data:[contentType]/[format];base64,{contentBytes} so for your png image:
"data:image/png;base64,{contentBytes}"