Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii ,

VB
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'


Below are the exceptio i got on my

objZip.Save(Response.OutputStream);

C#
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=DownloadedFile.zip");
Response.ContentType = "application/zip";
objZip.Save(Response.OutputStream);
//Directory.Delete(deletePath, true);
Response.End();



using wkhtmltopdf i am writing the file on the given destitution , which is working ..i checked the location and the file is present there using ioniz.zip i am saving on the zip list ./.

and with the above code i am trying to fetch into zip format from that location
Posted
Updated 4-Nov-14 4:39am
v3
Comments
Torakami 10-Nov-14 1:44am    
Update pannel was killing the popup to show , any suggestion how to use updatepanel with responce.outputsream??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900