Closed insinfo closed 1 year ago
Thank you for the question, but please note that the issue section is for reporting bugs/errors and or enhancement requests for the library. For questions on how to use the library please refer to a site such as StackOverflow. With that being said, the code above looks decent, although depending on the size of the directories you are downloading you could run into memory issues as each of those MemoryStream
objects is going to be held in memory until you write the zip file. If that becomes an issue you can look into downloading the files into a temporary directory and then zipping from that.
what is the best way to use the lib Ionic.Zip to download files directly to a zip file
I made this code below but I don't know if it's the best approach