Confluent
CCDAK · Question #1
If I want to send binary data through the REST proxy to topic "test_binary", it needs to be base64 encoded. A consumer connecting directly into the Kafka topic
The correct answer is B. binary data. On the producer side, after receiving base64 data, the REST Proxy will convert it into bytes and then send that bytes payload to Kafka. Therefore consumers reading directly from Kafka will receive binary data.
Kafka Client Fundamentals
Question
If I want to send binary data through the REST proxy to topic "test_binary", it needs to be base64 encoded. A consumer connecting directly into the Kafka topic
Options
- A"test_binary" will receive
- Bbinary data
- Cavro data
- Djson data
- Ebase64 encoded data, it will need to decode it
How the community answered
(27 responses)- A4% (1)
- B85% (23)
- C4% (1)
- E7% (2)
Explanation
On the producer side, after receiving base64 data, the REST Proxy will convert it into bytes and then send that bytes payload to Kafka. Therefore consumers reading directly from Kafka will receive binary data.
Topics
#REST proxy#base64 encoding#binary data#consumer behavior
Community Discussion
No community discussion yet for this question.