oscerd commented on issue #1542:
URL: 
https://github.com/apache/camel-kafka-connector/issues/1542#issuecomment-6632218420

   jakubmalek's answer above is still the way to do this. The kafka-ssl-sink 
connector was replaced in 4.18.0 by camel-kafka-sink-kafka-connector 
(`org.apache.camel.kafkaconnector.kafkasink.CamelKafkasinkSinkConnector`), 
configured with `camel.kamelet.kafka-sink.saslAuthType=SSL` and the 
`camel.kamelet.kafka-sink.ssl*` options. Its producer still defaults to 
`StringSerializer`, so for binary payloads add 
`camel.component.kafka.valueSerializer=org.apache.kafka.common.serialization.ByteArraySerializer`
 next to 
`value.converter=org.apache.kafka.connect.converters.ByteArrayConverter`; in a 
quick check with the 4.22.0 jars this delivered the bytes unchanged, while the 
default replaced the non-UTF-8 bytes. Closing this as answered; if payloads are 
still altered on 4.22.x, please open a new issue with the version, connector 
config and a sample record.
   
   ---
   _Claude Code on behalf of Andrea Cosentino_


-- 
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]

Reply via email to