Forum Discussion

smaloney's avatar
Occasional Contributor
2 years ago

ReadyAPI response includes compressed file


We have an endpoint which returns a compressed file.  Within this compressed (zip) file, are several other text files.  

Does anyone know how we can retrieve that compressed file, unzip it and examine the contents within ReadyAPI?



2 Replies

  • KarelHusa's avatar
    Champion Level 3


    an option would be to process the compressed response with a Groovy script.


    You can utilize, e.g., Java ZipInputStream, iterate through Zip entries, and do anything you need with each of them.


    • smaloney's avatar
      Occasional Contributor

      Great Suggestion, 

      Thanks so much for your input!