When a web server returns a JPEG image (mime type image/jpeg), how is that encoded?

后端 未结 3 1245
死守一世寂寞
死守一世寂寞 2021-01-04 20:47

If you make an HTTP request to a web server, and it returns a response of type image/jpeg, how is the binary data actually encoded? Is it the original byte-level content of

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 21:20

    The original bytes are sent across the wire.

    (With a bit of setup, you can confirm this with Wireshark, tcp_dump et al.)

    Note that most servers are configured not to compress JPEGs, but that text data is generally sent compressed.

提交回复
热议问题