Receive an image on the iPhone (TCP Client)
问题 I'm programming a client on the iPhone. I want to send some strings, and receive an image from the server. I found this tutorial (http://www.devx.com/wireless/Article/43551), it has been very useful. It works if I want to receive strings, but now I want to receive an image, and I can't make it work. This is my code when the iPhone receives data. It's a mix made with the tutorial and this answer from JeremyP (http://stackoverflow.com/questions/4613218): - (void)stream:(NSStream *)stream