React Native
React Native
GZip Decompress File
See more Gzip Examples
Demonstrates how to uncompress a .gz compressed file to get the uncompressed original file.Chilkat React Native Downloads
import { Gzip } from '@chilkat/react-native'
async function chilkatExample() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const gzip = new Gzip();
try {
await gzip.uncompressFileAsync('qa_data/gzip/something.csv.gz', 'qa_output/something.csv');
} catch {
console.log(gzip.lastErrorText);
return;
}
console.log('File successfully uncompressed and extracted from the Gzip compressed format.');
}