|
|
Subject:
ZipOutputStream Java
Category: Computers > Programming Asked by: marcusmrict-ga List Price: $2.00 |
Posted:
31 May 2004 01:53 PDT
Expires: 29 Dec 2004 04:03 PST Question ID: 354185 |
Can someone help me send a zip file for download to a browser. I have a method that is called from a JSP page that returns a ZipOutputStream . How can I then send this zip file to the client as a download? Many Thanks, Marcus Robinson |
|
There is no answer at this time. |
|
Subject:
Re: ZipOutputStream Java
From: parubok-ga on 02 Jun 2004 13:04 PDT |
Does the zip file that you want to send to the browser already exist, or is it being created on the fly? You can create a temporary zip file on the server's side and then create a link to it to make it available for download. If you have a command-line zip utility installed on the server's side, then you can execute that command from within java to create the zip file you want. Regards, parubok |
Subject:
Re: ZipOutputStream Java
From: marcusmrict-ga on 02 Jun 2004 13:51 PDT |
The zip file is being created on the fly and I would rather not create a link to a tempory file. I have a ZipOutputStram being passed to a JSP page, is it not possible to modify the response to include the output stream? Cheers, Marcus |
Subject:
Re: ZipOutputStream Java
From: meenax-ga on 28 Dec 2004 23:57 PST |
Hi Marcus, am facing a similar situation.Were you able to solve this? |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |