I am Trying to Send Some Info Before Sending File to My Socket Server Through UTF, When I Send only A File Name :
File fil=new File(filepath);
dos.writeUTF (fil.getName());
it Works fine, But When i Add Some Custom String to It :
dos.writeUTF((("@REQUEST@ROOM:"+roomName+"@FILENAME:"+fil.getName())));
i get This Error :
UTFDataFormatException: malformed input UTF Format
Could You Help me Here Please ?