ZIP 파일 압축 풀기에 대한 설명서와 게시물을 읽었지만 추가 질문이 있습니다. Qt에서 압축 파일의 압축을 풀어야합니다. 그것은 gzip으로 압축 된 XML 파일입니다. qUnCompress는 ZLIB로 준비된 zip 파일을 압축 할 수 있으며 ZLIB는 GZIP보다 다른 헤더를 가지고 있음을 알고 있습니다.Qt qUnCompress 함수로 파일 압축 해제
은 내가 문서 읽을 때 :
Note: If you want to use this function to uncompress external data that was compressed using zlib, you first need to prepend a four byte header to the byte array containing the data. The header must contain the expected length (in bytes) of the uncompressed data, expressed as an unsigned, big-endian, 32-bit integer.
가 내가 (가 bigEndian)를 시작하는 유일한 길이 및 압축 된 데이터보다 넣어야 할 것을 의미인가?
당신은 쓸 필요가qUncompress: Z_DATA_ERROR: Input data is corrupted