hi Daniel, On Fri, May 28, 2010 at 4:06 PM, dan brownell <[email protected]> wrote: > > Hi Kiran, > > Thanks for your reply. Your idea kind of worked. > The thing is, it only works if I specift factory.setDecoderPrefixLength(1); > and then it receives like 255 characters each time, which is unacceptable. > > If I specify factory.setDecoderPrefixLength(2) or (4), it gives me a > dataLength error. > My messages will probably be up to 100K, so I'll probably need all 4 bytes. > Must I pad the byte[] with zeroes to fill 32 bits? AFAIK you need not pad the integer bytes, writing an int directly to the stream should be enough in java, there must be something going on in the encoder/decoder parts of code not sure where cause I havn't used this codec
Kiran Ayyagari
