Forum Discussion

smaloney's avatar
smaloney
Occasional Contributor
2 years ago

ReadyAPI response includes compressed file

Hello,

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
    KarelHusa
    Champion Level 3

    smaloney,

    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
      smaloney
      Occasional Contributor

      Great Suggestion, 

      Thanks so much for your input!