XML to OutputStream - size

Hello!

Its seems, that i have troubles sending my XML from my desktop Application to the mobile if the XML size exceeds a size of about 10 lines.

I just send the XML with outputstream.writebyte(byte) (server side)

and receive it on my client with inputstream.readByte().

It is possible to receive small xml files - is there a way to send "unlimited" ones too? i mean, i thought that the inputstream + Kxml are able to handle a certain amount of bytes, read them, clear them - and read the next ones.. without any size restricted limitiations. (for sure, i wont send a XMl with 100MB ;-) but i wont believe that it is not possible to read bigger files with lets say 20-100lines..?

any tips?

with kind regards,

Alexander Sommer

[776 byte] By [sommeralexa] at [2007-11-26 17:59:21]
# 1
You say you have troubles but, what kind of troubles? An exception is thrown? The read ends prematurely?
jcseijopa at 2007-7-9 5:27:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Why read the data byte by byte? That's very slow... Futhermore, I cannot tell you much withou seeing some code..
deepspacea at 2007-7-9 5:27:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...