gzip + chunked : must wait the whole file to be downloaded before unzipping?
问题 I am pretty sure of the answer but I would like someone to confirm it please. There is no way to unzip only a part of a file when gzip is used in the HTTP headers. I gotta download the whole file before to be able to unzip it to get the data. Right ? For example, if I get the first 100 bytes with some code like that: myfile.read(100) I won't be able to unzip it at this point. Thanks. 回答1: You can start decompressing a gzip stream immediately, for whatever amount of data you have so far. You