streamed zip



Hello.

I have a servlet that streams a zip archive to the client. It uses
java.util.zip.ZipOutputStream & co. It does not set the content
length header as the size is not known before the zip is created.

When a windows user clicks on a link to this servlet, she can
choose between "open" and "save". Save works very well, but
"open" does not. Using "open" just show an empty zip archive.

Anyone else seen this? Any known workaround?

Regards,
- Tore.
.



Relevant Pages

  • Re: Clarification on firewall issues with Java networking APIs
    ... work properly when either the client or the server is behind a proxy unless ... A RMI server registers its service with the rmiregistry, ... assigned or tells the registry the port that it actually listen on. ... routine and the servlet can send a reply on that already established socket. ...
    (comp.lang.java.programmer)
  • Re: Thread safety in Tomcat
    ... I fully agree that SingleThreadModel is a kludgy crutch. ... > the servlet class inherently thread-safe in the first place. ... with the certain amount of interactivity between the server and the client. ...
    (comp.lang.java.programmer)
  • Trying to send XML with HTTP POST to a Servlet
    ... I am trying to send some XML stuff through HTTP POST using a Java HTTP ... client and a Servlet, and it doesn't seem to work! ... Here is my client code: ... Here is my server code: ...
    (comp.lang.java.programmer)
  • Re: Seeting http headers in request in JSP page
    ... > How can I send a http header from a jsp page to servlet? ...
    (comp.lang.java.programmer)
  • Re: can i recive a txt file from client to my servlet?
    ... A servlet (or any server) cannot reach out to a client and retrieve a file. ... The client is an applet loaded from a web page. ...
    (comp.lang.java.help)