server is a pc and the mobile is a client
i tested the application successfully on many mobiles
but i had problem with nokia 6600
it sends message in agood way but can't receive

i follow the technique of sending the length of message
then the message it self


/////////
here is the server code that
//////////////////////////
connection = (StreamConnection) Connector.open(serviceUrl);
outputStream = connection.openOutputStream();
String message="sdhfjkshdfkjhsdfh .... any"
length=message.length();
outputStream.write(length);
outputStream.flush();
sleep(100)
outputStream.write(message.getBytes());
outputStream.flush();
sleep(100)


///////////////////client code/////////////////////////
connection = notifier.acceptAndOpen();
inputStream = connection.openInputStream();
length = inputStream.read();//length of length
dataBuffer = new byte[length];
inputStream.read(dataBuffer);
String message=new String(dataBuffer);

wat's the problem, i don't know