jQuery in Action, 2nd edition
The moose likes Web Services and the fly likes Servlet sends zip file to client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Servlet sends zip file to client " Watch "Servlet sends zip file to client " New topic
Author

Servlet sends zip file to client

sindy lee
Greenhorn

Joined: Aug 05, 2010
Posts: 14
Hi, everyone,
I have a problem and need your help. My servlet is:



And my client is:




The Problem is, if i try to open my "zipmaildir.zip", it tells me "the file can not opened, it is not a zip file". So what's wrong here? How should i send my compressed files stream to client, and how can i convert it to a file?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet sends zip file to client
 
Similar Threads
Nothing gets written to the zip file
Determining Termination Condition for threads
ZipException - invalid entry compressed size
Zip question
HELP - GZIPInputStream