Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

download zipped excel help!!!

 
alex ho kwong yiu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i believe it is related to i/o question,

there is an existing code which work fine to output excel stream for user download /save in local directory



i try to modify it to output compressed excel(zipped version) for user download but fail, it show java.util.zip.ZipException: no current ZIP entry

what's wrong of the modified code?


i have searched post, it seems that i need read file (inputstream) and then transfer outputstream of zipOut, but it seems doesn't fix my case,
the wb object stored in memory

please help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic