Jump to content

chiranjit

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Denmark

About chiranjit

chiranjit's Achievements

0

Reputation

  1. Hi friends, I am a software developer ,working on java/j2ee.currently i am working in a document management software related to logistics.Here i am facing a problem at the time of open the zip file through windows XP's in built software called "Folder compress".It's creared through java.util.zip.zipoutputstream.but at time of open through xp compress folder software ,it's showing error that "you can't open this file , this file are protected for your computer security" , but when i trying to open it through winzip or winrar, it's not giving any problem.My also specefing the code snippet below :- ZipOutputStream zip = null; FileOutputStream fileWriter = null; try { fileWriter = new FileOutputStream(destZipFile); zip = new ZipOutputStream(fileWriter); //required for XP compress zip.setMethod(ZipOutputStream.DEFLATED); zip.setLevel(Deflater.DEFAULT_COMPRESSION); //use default level }catch (Exception ex){ ex.printStackTrace(); System.exit(0); } addFolderToZip("", srcFolder, zip); try { zip.flush(); zip.close(); zip=null; fileWriter.close(); fileWriter = null; }catch (Exception ex) { //ex.printStackTrace(); logger.log("net.mlog.edoc.ejb.session.EdocRetrieveServiceSLBean.ProcessException","Exception in Zip folder processing"); } I desperately looking for a help regarding this issue , if any body have any solution the please send at this forum. Thanks, Chiranjit
×
×
  • Create New...