You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

UnZipping Files using zipOutputStream

Just some sample code to use the new zipOutputStream function

    String exportJobName='Job_Console_Export_20250925.zip'
    zipInputStream(exportJobName).withCloseable { ZipInputStream zis ->
      String outFileName = zis.getNextEntry().getName()
      println "Extracting file: " + outFileName          
      Writer writer = createFilePrintWriter(outFileName,'ISO-8859-1',false);
      for( int c= zis.read(); c!=-1; c = zis.read()) writer.write((char)c)
      writer.close()
    }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!