ITSROFLTIME
New Member
I currently use ionic to zip a number of photos and then send them to the user on a browser. Essentially something like this.\[code\]using (ZipFile zipFile = new ZipFile()){ byte[] data = http://stackoverflow.com/questions/12643159/client.DownloadData("photo.png"); zipFile.AddEntry("photo.png", data); Response.ClearContent(); Response.ClearHeaders(); Response.AppendHeader("content-disposition", "attachment; filename=Media.zip"); zipFile.Save(Response.OutputStream);}\[/code\]However sometimes there are many photo's going up to 15 mb's and there are many of them.As such memory gets completely used and it runs out before it can finish creating the zip file. Is there a way I can accomplish zipping files and sending them to a user without using such vast amounts of memory? Maybe a different approach entirely?