Android Sending Bmp Using Sockets
I'm trying to send bmp image using socket. I have such code on android: ByteArrayOutputStream stream = new ByteArrayOutputStream(); MainActivity.bmp.compress(Bitmap.CompressFormat.
Solution 1:
You never close the socket/OutputStream on the device side so the PC side doesn't know that there is no more data and so it just spins in the while loop reading 0 bytes at a time.
Also, if you're going to use my solution, please mark me as the accepted answer in your previous thread.
Post a Comment for "Android Sending Bmp Using Sockets"