Posted By:
Axel_Richter
Posted On:
Thursday, August 29, 2002 01:15 AM
That is according to my opinion no Socket problem. You assume that is.available() return the size of the entire byte array. Whereupon I did not rely.
Use a BufferedInputStream is and do something like this:
Vector v = new Vector();
while((i = is.read()) != -1) {
b = new Byte((byte)i); //or other type
v.add(b);
}
out.close();