• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 921
  • Last Modified:

Response. ContentType difference when transmiting a zip file

Can you tell me the difference between "application/zip" and "x-zip-compressed"?

Note: Also which is one is legacy (if applicable) and if there is any issue with IE6,7,8

I am using Response.TransmitFile to send a zip to the client browser and I notice that some sample code on web uses one or the other as the value for Response.ContentType property.
0
Miguel Oz
Asked:
Miguel Oz
  • 4
  • 3
  • 2
  • +1
5 Solutions
 
yjchong514Commented:
Dear EE member,
IE4 onwards supports x-zip-compressed
check HKEY_CLASSES_ROOT\MIME\Database\Content Type

Regards,
yjchong514
0
 
Miguel OzSoftware EngineerAuthor Commented:
Thanks, but what is the difference/advantages between them?
0
 
Bob LearnedCommented:
I had to research on application/x-zip-compressed, since it is a non-standard MIME.

http://www.mimeapplication.org/

"The mime application/x-zip-compressed content type is a non-standard MIME type. This means that the Internet Assigned Names Authority has not registered the MIME type and its use is not standardized. Zip files are compressed archives containing other files."
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
yjchong514Commented:
x-zip-compressed is more common in these days. See "IE4 onwards" quoted above.


0
 
yjchong514Commented:
Dear mas_oz2003,
Refer
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_21869310.html

octet is the best.

Good luck!

Regards,
yjchong514
0
 
yjchong514Commented:
It supports firefox and Internet Explorer.
0
 
Miguel OzSoftware EngineerAuthor Commented:
Again, what is the difference/advantages between them?
if it is more common why? If it is non-standard MIME, does it mean it is not supported on every OS?
yjchong514: I have already had a working system, I am just curious about why people use either one of this context types and if there is any limitation about them that I need to be aware of.
0
 
Bob LearnedCommented:
I believe that they are similar, and that there isn't much difference between the two, other than the late adoption of the x-zip-compressed type.  I believe that application/zip is definitely more common in my world, but x-zip-compressed will still be processed by browsers.  I couldn't find references to confirm that for all browser types.  I always stick to the application/zip MIME type, so this was an interesting question from the research standpoint.
0
 
Miguel OzSoftware EngineerAuthor Commented:
Agree with TheLearnedOne is an interesting research question.
Thanks to all for your time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now