I have a web services that returns a list of files. Something like this:
public FileModel(){
string FileName {get;set;}
byte[] FileStream {get;set;}
string FileType {get;set;}
}
My Service would return:
List<FileModel> files;
I have to return this list to browser, so I need to compress these files into a zip folder.
However, I cant figure out how to do this, as .NET ZipArchive CreateFromDirectory is requiring me to provide a directory where the file to be zipped are. But I don't have a directory, I just have this list. How can I covert this list to a zipped folder.