; > Sent: Thursday, December 01, 2011 2:57 PM
> > To: kafka-users@incubator.apache.org
> > Subject: Re: Kafka and Binary Data
> >
> > Hi Casey,
> >
> > Yes, you can send messages as byte arrays. If you look at the constructor
> > of the Message class,
l.com]
> Sent: Thursday, December 01, 2011 2:57 PM
> To: kafka-users@incubator.apache.org
> Subject: Re: Kafka and Binary Data
>
> Hi Casey,
>
> Yes, you can send messages as byte arrays. If you look at the constructor
> of the Message class, you will see -
>
> def this
Perfect, thanks!
From: Neha Narkhede [neha.narkh...@gmail.com]
Sent: Thursday, December 01, 2011 2:57 PM
To: kafka-users@incubator.apache.org
Subject: Re: Kafka and Binary Data
Hi Casey,
Yes, you can send messages as byte arrays. If you look at the
Hi Casey,
Yes, you can send messages as byte arrays. If you look at the constructor
of the Message class, you will see -
def this(bytes: Array[Byte])
Now, looking at the Producer send() API -
def send(producerData: ProducerData[K,V]*)
You can set V to be of type Message and K to what you want
All,
Can one send byte arrays as messages to Kafka without having to encode them,
such as using Base64? We're trying to be as space efficient as possible,
however any gains made by using binary data formats, such as BSON, are lost
when we Base64 encode the data. I tried once before, but got a