简体   繁体   中英

How to create a zip file from the response received as part of rest call

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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM