Having trouble unzipping the file available at [https://wwwinfo.mfcr.cz/ares/ares_vreo_all.tar.gz][1] into my Google Drive folder.
I've successfully downloaded the file using a Google script, but I'm experiencing issues with the unzip process. Could someone kindly assist me with this?
Thank you in advance!
Update: Below is the code snippet:
function updateDB() {
var url = 'https://wwwinfo.mfcr.cz/ares/ares_vreo_all.tar.gz';
var blob = UrlFetchApp.fetch(url).getBlob();
var folder = DriveApp.getFolderById('fileid');
var archive = folder.createFile(blob);
unzip(archive);
}
function unzip(archive){
var zipblob = archive.getBlob();
var uncompressed1 = Utilities.ungzip(zipblob);
}
However, I encountered the following error:
Exception: Could not decompress gzip.
I suspect it's not decompressing as expected, so I'm seeking alternative solutions. If anyone has any insights, please do share! [1]: