Java: I am trying to server a zip file through a link, but the file comes out as being empty

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-03-09T07:19:57Z Indexed on 2010/03/09 7:21 UTC
Read the original article Hit count: 282

Filed under:
|
|
|

I am trying to server a zip file through a link, but the file comes out as being empty.

My app takes a number of files and zips them up, then presents the user with a link to the file so he/she can download it.

On the server I can see that the zip file is being created correctly, but when I download it from the server through the normal HTML link provided no data is downloaded i.e. a zip file is created locally but it has file size 0kb.

The file names are of the form XPCS.2010-03-09.15.13.42.165.zip - will the dots cause problems?

© Stack Overflow or respective owner

Related posts about zip

Related posts about download