This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes saving as a zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "saving as a zip file" Watch "saving as a zip file" New topic

saving as a zip file

mango ewing

Joined: Sep 28, 2006
Posts: 2
Hi, I need to save something in a compressed format. I have this line of code:
response.setHeader("Content-Type", "application/x-zip-compressed");
It works fine on Windows XP, but doesn't work on Windows 2003 Server. I used Fiddler on Windows 2003 Server, and found that IE never receives a session which has content-type set to "zip" or "compressed".

I suspect that some recent Windows service pack caused something, because it used to work. But the function wasn't tested constantly, so I don't know for sure when it was first broken.

Did anyone have similar experience?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

I'm not sure what you mean by 'doesnt work'

Does nothing get sent back to the client, or does the client just not know what to do with what comes back.

If the content gets sent back to one client, then it's getting sent back to the other client, unless there is some refuse header the client is sending to the server.

There's not a firewall blocking zip files between the client and the server, is there?

-Cameron McKenzie
It is sorta covered in the JavaRanch Style Guide.
subject: saving as a zip file
jQuery in Action, 3rd edition