0

As part of my project i am making a rest call which gives the response as a zip file . In rest client i am getting the response in some big unreadable format. the zip will be containing more than one file ( the name of these files will be different ) every time . Can you please suggest me how to read this data and convert it into the zip files which will contain all files .

user3718420
  • 151
  • 1
  • 3
  • 14
  • Possible duplicate of [How to download a file using a Java REST service and a data stream](https://stackoverflow.com/questions/29712554/how-to-download-a-file-using-a-java-rest-service-and-a-data-stream) – Arnaud May 23 '17 at 15:33

1 Answers1

0

Make the rest api return the URL to the zip. Then you should stream it as a normal file and then you can use a library to unpack the zip.

Robert
  • 2,357
  • 4
  • 25
  • 46