开发者

How to send image dat over network as fast ?

开发者 https://www.devze.com 2023-04-01 09:33 出处:网络
I am working with client-server using Java. Client is performs on android and wants to request some images from server. And the server will response image as byte[] data to client. The approximate siz

I am working with client-server using Java. Client is performs on android and wants to request some images from server. And the server will response image as byte[] data to client. The approximate size of data is 150K per/request (already re-size). And the process usually use 3 seconds for response. I think it use long time to response client.

Could anyone guide me as trick for use shorter time response?

Thanks in 开发者_StackOverflowadvance


When dealing with mobile networks, there is no guaranteed network speed. The best that can be done is (as you said) resizing and then having a strong compression applied to the image. You will find that in some areas (including some cities) your response time will be over 20secs due to poor signal quality and congested networks.


Use GZIP compression compression

0

精彩评论

暂无评论...
验证码 换一张
取 消