jakubmalek commented on issue #1358: URL: https://github.com/apache/camel-kafka-connector/issues/1358#issuecomment-1239000199
Hi @oscerd, Thanks for replying. I understand that, but the problem is that Event Hub consumer is posting message body in bytes. So, even though the payload could already be JSON it's being converted into Base64 by the Jackson mapper. In terms of configuration, I know you can set the date-format with `camel.source.marshal` property, but as far as I know, there is no data format that supports keeping original format. So in my case, I either have to write my own Kafka Connect converter decoding base64 or implement Camel data format that writes original bytes back to output stream. From my perspective the common use case for the connecter is to keep the original message format. It shouldn't matter whether it's JSON, XML or plain text. But on top of that, you should have option to configure Camel data format or apply transformation in Kafka Connect transform/converter API. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
