View Single Post
  #4 (permalink)  
Old 06-25-2009, 04:56 AM
zwr zwr is offline
Registered User
 
Join Date: Nov 2008
Posts: 5
zwr is on a distinguished road
Re: IE, IIS Dynamic compression and corrupt zip files

Quote:
Originally Posted by Darren Syzling View Post
We have a download page which is sending files from a database down to a
browser. The web server is Windows Server 2003 SP2 with IIS6 the
application is an ASP.NET app running on .net 3.5. IIS is configured to
compress static files and dynamic pages - including the aspx extension.

When downloading a zip file from our site - which is subsequently also
compressed by IIS (yes unnecessarily) the zip file is corrupted when
downloaded by IE 6,7 and 8. Firefox, Safari, Google Chrome all handle
the download without issues.

We believe the correct http headers are being sent, along with the
typical cotent-disposition we're sending:
Content-Type application/x-zip-compressed (or application/zip)
Content-Encoding gzip

If the content-type is changed to 'application/octet-stream', IE then
handles the file correctly. In our application we specifically handle
this case but wondered if it had ever been reported or reproduced under IE?

The file is downloaded over a secure connection (SSL) if this makes any
difference to IE's behaviour and if anyone needs my metabase settings
along with a simple ironpython or c# aspx sample I can supply these to
recreate the problem.


Darren
Hi,

Why not try Advanced Zip Repair at Advanced Zip Repair - Repair corrupt Zip files. Fix Zip files. ? It recovers several important Zip files for me and is really helpful!

Alan
Reply With Quote

 
Old 06-25-2009, 04:56 AM