Hello, I need help please. I have ServerSocket and Socket ... I can send data type STRING, but i need send byte array or InputStream, that's I do not care, ale I need to send it. I have been try it 2 days and I'm desperate. Can you see to me some basic example how send between sockets byte or InputStream?? Thank you very much.
Thank you. I have this. Now I would to ask, if it's good way or bad, because receiving side byte array correct receive and success save, because byte I am using for file. Problem I have with server, because throw exception --> image. How to repair it. I tried delete row with dos.flush(), but exception is the same. But row 84.