the server gets the byte array corresponding to the picture. To transmit it to the android client through the http protocol, pass in the byte array of the picture with new String (), and then send it to the client. Then the client gets the byte array through the String.getBytes () method to parse the picture, so it must be encoded by Base64, and then the client side can decode it with Base64.