Which methods do you use to get at the data? The read(byte[]) and read(byte[],int,int) methods let you specify how many bytes to read.
I'm moving this
thread to the I/O and Streams forum, where it is a better fit. Please find it there and continue the discussion.