SOHU-Co/kafka-node

Support Binary Data

vanthome opened this issue · 6 comments

While Kafka supports binary data, this module only seems to support text based data.
It would be great if you could support binary data based on streams and buffer.

Have you tried setting the encoding option to buffer ?

will try and let you know

I've been using this module with Avro for a couple months, works great.

@vanthome did setting the encoding option to buffer work for you?

@hyperlink @vanthome I have tried setting the Encoding Option in the Consumer to 'buffer' and it is working fine . Thank you very much.
It could be very nice to enhance the documentation by saying that it is possible to transfer binary data through buffers by setting the encoding option of the Consumer and that NO prior setting for the producer are required .
In other word that it does not depend on the producer's encoding but it depends on the consumer's encoding .
Thank you very much :D

It appears that the "encoding" option is available in the ConsumerGroup, but this is not documented very well. It would be helpful to provide a more complete and clear documentation for the ConsumerGroup option. Thanks.