Subj : OutputStream Problem To : netscape.public.mozilla.jseng From : "Normen Ruhrus" Date : Tue Sep 23 2003 01:25 pm Hi there, got the following Script and got the Error Message: Could someone please tell me how to write this correct, so that it is understandable for Rhino? Thanks alot in advance Normen <23-Sep-2003 12:14:02> :C_SocketDevice.run():org.mozilla.javascript.EvaluatorException: The choice of Java method java.io.FileOutputStream.write matching JavaScript argument types (byte[]) is ambiguous; candidate methods are: void write(int), void write(byte[]) (devtest; line 12) //Globals var test = new java.lang.String("JavaScript"); //Hauptteil while(true) { var sock = Server.accept(); var out = sock.getOutputStream(); out.write(test.getBytes()); sock.close(); } .