Hello everyone,

So, in another related post, i got the chat to send to a java server, cool.


Now, it's a matter of sending it back to VB.


on the server side of things, (in java), I am using the following code:

JAVA Code:
  1. public static void sendback(String what2send) throws IOException {
  2.         ObjectOutputStream oos = new ObjectOutputStream(mySocket.getOutputStream());
  3.         log.info("Got text: "+ what2send);
  4.         oos.writeBytes(what2send);
  5.         oos.flush();
  6.     }

now, on vb, i am using:

VB Code:
  1. Dim received As Byte()
  2.             received = New Byte(1023) {}
  3.             Dim readbytes As Integer = 0
  4.             readbytes = clientSocket.GetStream().Read(received, 0, received.Length)
  5.             Debug.Print("Output from server: " & serverStream.Read(received, 0, readbytes))

it seems to be freezing on the serverStream.read portion.

Now, I am no expert to sockets, and am able to do a vb to vb client/server chat, however going from java to vb is way new to me.

Any help or guidance would be GREATLY appreciated.