Bytes read from an input stream go into buffer and you control how long that is. However, you don't need to increase the size but should always read the stream dry before finishing.
The jdk methods usually return the # bytes read or -1 for end of stream. You just keep calling read until you get eos. You don't need to read bytes one at a time. Instead wrap your input stream in a buffered input stream so you can read many at once. This is far more efficient. If you post your code we may be able to give you a more specific answer. Sent from Incredible Android. On May 11, 2011 1:06 PM, "Christine Karman" <[email protected]> wrote: > Hi, > I'm reading an inputstream, but somehow the input gets chopped off at > around 4k characters. I'm reading the characters one by one from the > input stream. I've never seen this before, but then, maybe I've never > read input more than 4k at a time. Does it ring a bell with somone? > What can I do wrong to chop the input at around 4030 characters? > > Thanks in advance.... > > dagdag > Christine > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
