How to calculate java BufferedImage filesize

后端 未结 6 1493
闹比i
闹比i 2021-01-04 04:41

I have a servlet based application that is serving images from files stored locally. I have added logic that will allow the application to load the image file to a Buffered

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 05:00

    Unless it is a very small image file, prefer to use chunked encoding over specifying a content length.

    It was noted in one or two recent stackoverflow podcasts that HTTP proxies often report that they only support HTTP/1.0, which may be an issue.

提交回复
热议问题