i am trying to create an application that implements a midlet-servlet communication. i used datainputstream to pass strings between them.however an ioexception is issued. i found out that the exception occurs everytime i try to use the readUTF method to get the contents of the datainputstream. can anyone help me how i can solve my problem? or give an example. thanks in advance.