Length = 'Response.OutputStream.Length' threw an exception of type 'System.NotSupportedException' Position = 'Response.OutputStream.Position' threw an exception of type 'System.NotSupportedException' ReadTimeout = 'Response.OutputStream.ReadTimeout' threw an exception of type 'System.InvalidOperationException' WriteTimeout = 'Response.OutputStream.WriteTimeout' threw an exception of type 'System.InvalidOperationException'
Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=DownloadedFile.zip"); Response.ContentType = "application/zip"; objZip.Save(Response.OutputStream); //Directory.Delete(deletePath, true); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)