change download code
the server readline and write to socket as byte array