wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "saving as a zip file" Watch "saving as a zip file" New topic
Author

saving as a zip file

mango ewing
Greenhorn

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
    
    1

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
 
Similar Threads
uncompressing .Z file in Unix
handling a zip file from a url
Does jar compresses files per file or across all files within the jar file?
use of application/zip
creating in memory files and folders