Thank you the reply.
The CV2 image format is of type numpy.ndarray, and apparently I couldn't send it as output to a blob storage. I fixed that by (re-)encoding the image to the same format as it came in (JPEG or PNG) and that worked out fine. Not sure if this is a common solution or whether there's something more convenient, but at the moment, it looks like it's working.