[
  {
    "Id": "539026",
    "ThreadId": "239180",
    "Html": "\r\n<p>I am using the following code to zip selected files to the server.&nbsp; Everything works fine with IE.&nbsp; With Firefox the file is saved on the server but a bunch of gibberish is written out to the screen.&nbsp; By the way nothing is actually caught\r\n as an exception<br>\r\n<br>\r\n<br>\r\n<br>\r\nCode Used:<br>\r\n<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">Try</span>\r\n                <span style=\"color:blue\">Using</span> zip <span style=\"color:blue\">As</span> <span style=\"color:blue\">New</span> ZipFile()\r\n                    <span style=\"color:green\">' filesToInclude is a string[] or List&lt;String&gt;</span>\r\n                    zip.AddFiles(filesToInclude, <span style=\"color:#a31515\">&quot;&quot;</span>)\r\n                    zip.Save(Server.MapPath(<span style=\"color:#a31515\">&quot;invoiceimages/&quot;</span> &amp; archiveName))\r\n                    \r\n\t\t    <span style=\"color:green\">'i've actually tried a variety of changes below with no success</span>\r\n\t\t    Response.Clear()\r\n                    Response.Buffer = <span style=\"color:blue\">False</span>\r\n\r\n                   \r\n                    lblMessage.Text = <span style=\"color:#a31515\">&quot;Invoice images successfully zipped...&quot;</span>\r\n                    rbNext.Enabled = <span style=\"color:blue\">True</span>\r\n                    rbPrev.Enabled = <span style=\"color:blue\">True</span>\r\n                   \r\n                  \r\n                <span style=\"color:blue\">End</span> <span style=\"color:blue\">Using</span>\r\n            <span style=\"color:blue\">Catch</span> ex <span style=\"color:blue\">As</span> Exception\r\n                ErrorMessage.InnerHtml = ex.Message\r\n                ErrorMessage.Visible = <span style=\"color:blue\">True</span>\r\n                lblMessage.Text = ex.Message\r\n                <span style=\"color:blue\">Exit</span> <span style=\"color:blue\">Sub</span>\r\n            <span style=\"color:blue\">End</span> <span style=\"color:blue\">Try</span>\r\n\r\n</pre>\r\n</div>\r\n&nbsp;&nbsp;&nbsp;\r\n<div style=\"color:black; background-color:white\">\r\n<pre><br></pre>\r\n</div>\r\n<p></p>\r\n",
    "PostedDate": "2010-12-21T15:02:17.36-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539042",
    "ThreadId": "239180",
    "Html": "\r\n<p>Hi Carlos,</p>\r\n<p>It's not totally clear what your issue is - could you provide a bit more context? If you're only saving the zip file to the server and not downloading it to the client then the Response.Clear might be doing more harm than good within the normal ASP.NET page\r\n lifecycle. On the other hand, if you're trying to send the file to the browser then your &quot;bunch of gibberish&quot; could actually be the binary contents of the zip file rendered inline in the web page. Some more code and / or screenshots would help.</p>\r\n<p>Cheers,</p>\r\n<p>Mike</p>\r\n",
    "PostedDate": "2010-12-21T15:37:47.037-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539051",
    "ThreadId": "239180",
    "Html": "I'm not sending the file to browser. The zip file is composed of jpegs.<br>\r\n<br>\r\nI only added the response code to try and find a solution.<br>\r\n<br>\r\nI will post a screen shot when I get in front of pc<br>\r\n<br>\r\nThanks,<br>\r\nCarlos",
    "PostedDate": "2010-12-21T16:02:10.13-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539103",
    "ThreadId": "239180",
    "Html": "\r\n<p>This is what is written to screen immediately after the zip selected files button is clicked and the above code is executed.&nbsp; I'm not sure if this makes a difference but I am using telerik rad controls for various pieces of the page (but not the zip\r\n selected files button).</p>\r\n<p>&nbsp;</p>\r\n<p><a title=\"Error\" href=\"http://conscienta.com/firefoxerror.png\" target=\"_blank\">http://conscienta.com/firefoxerror.png</a></p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-12-21T18:55:25.223-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539353",
    "ThreadId": "239180",
    "Html": "\r\n<p>Yipes! It looks like a mangled *.aspx page source.</p>\r\n<p>Could you try a couple of other things:</p>\r\n<p>&#43; Comment out the DotNetZip code in&nbsp;your page and see whether you get the same results or not. Maybe also remove the reference to Ionic.*.dll just to make sure. If the problem persists then it might be something in your ASP.NET install.</p>\r\n<p>&#43; Run the existing page in IE and Firefox with Fiddler2 running in the background and see if the garbled text is part of the raw http conversation in both cases. (If you're running the site on your local machine you'll need to use\r\n<a href=\"http://%3cmachine_name%3e/\">http://&lt;machine_name&gt;</a> instead of <a href=\"http://localhost/\">\r\nhttp://localhost</a> - see <a href=\"http://www.fiddler2.com/fiddler/help/hookup.asp\">\r\nhttp://www.fiddler2.com/fiddler/help/hookup.asp</a>&nbsp;for more info).</p>\r\n",
    "PostedDate": "2010-12-22T06:40:07.053-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539526",
    "ThreadId": "239180",
    "Html": "\r\n<div>\r\n<p>Looks like this piece of code was the culprit:</p>\r\n<p></p>\r\n<p style=\"text-autospace:none\"><span style=\"font-size:9.5pt; font-family:Consolas; color:black\">Response.Clear()</span></p>\r\n<p style=\"text-autospace:none\"><span style=\"font-size:9.5pt; font-family:Consolas; color:black\">Response.BufferOutput = False</span></p>\r\n<p></p>\r\n<p>I think this was included in the sample I used but it’s not needed here since I’m not performing a user prompt save dialog. Once I commented out the code ran as expected in IE and Firefox</p>\r\n<p></p>\r\n<p>Carlos Gonzalez<br>\r\n214.454.6061</p>\r\n<p></p>\r\n</div>\r\n",
    "PostedDate": "2010-12-22T12:26:50.36-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "539635",
    "ThreadId": "239180",
    "Html": "\r\n<p>Fab. Glad you managed to solve it.</p>\r\n<p>Have a great holiday this weekend.</p>\r\n<p>M</p>\r\n",
    "PostedDate": "2010-12-22T16:10:56.46-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]