Android - Receving an Image over the Socket from C# Server (Almost Complete)

后端 未结 1 549
广开言路
广开言路 2021-01-28 21:52

I\'m sending an image (it\'s basically a video stream) x times per second on my server.

master.frame_drone.Bitmap is the image

C# Server

<         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 22:14

         while(true) {
                Scanner r = new Scanner(new InputStreamReader(socket.getInputStream()));
    

    Change that to:

        Scanner r = new Scanner(new InputStreamReader(socket.getInputStream()));
    
        while(true) {
    

    0 讨论(0)
提交回复
热议问题