I have images on my website where the user can download selected images. When the user selects more than one image the files are downloaded as zip files; the zipping process takes place on the server.
However, when the user selects more files( the size also increase let say by 500MB) so when he presses download the zipping starts on server. The web page is hanging and the user can't do anything until the zipping process has completed.
Sometimes the browser (like Chrome) gives messages (process is taking too long , kill this process). So I am looking for some help here.
I need a solid suggestion
Thanks
my code for zipping the file is:
public string Zip(string f, bool original)
{
string zip = "";
try
{
files = HttpContext.Current.Server.UrlDecode(files);
string[] fileCollection = files.Split('*');
zipFile = class1.zipfile(fileCollection, IsOriginal);
int fileLength = files.Length;
}
catch (Exception ex)
{
Console.WriteLine("Exception during processing {0}", ex);
}
return File;