I have a client in Android and server in C#, they communicate through socket. I have this problem - if I run my client app in debug mode and place a breakpoint in right place - it works perfectly, but without it it doesn't. Client sends adress of an image to server, server makes a thumbnail of it, converts it to byte[] and sends it back. Client gets the byte[], converts it back into image and shows it. I've also found out that when it doesn't get the right byte[] its size is 2896 and sometimes 1448, no matter what the original size of the array sent was.I have a client in Android and server in C#, th