I have two computers. They are able to send text messages to each other, but as soon as I want to pass an image the program crashes.

To read the sent data I am using "readAll();"

How do I solve this ?