read compressed file in GZ format, Ex. impression-day-2019-01-22.json.gz

read compressed file in GZ format, Ex. impression-day-2019-01-22.json.gz

We have a file upload on S3 bucket in with .JSON.GZ extension. We are trying to write a script to read that file, unzip that file and then upload it to ZOHO Workdrive.  

Code is below: 
========================================================== 
 zip = invokeUrl
 [
       type:  GET
 ];
  zip.setFileType("zip");

 file_collection = zip.extract(); 
 info file_collection;
 
 for each  file  in  file_collection
 {
   rsp = zoho.workdrive.uploadFile(file,"dirID",file.getFileName(),true,"---");
   info rsp;
 }  


When I execute that code, it is returning blank values. 

whereas when I use file .ZIP (url: "https://s3bucketURL/impression-day.zip" ) extension it is working fine. 

any help will be much appreciated