chiranjit Posted January 3, 2006 Share Posted January 3, 2006 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 Link to comment Share on other sites More sharing options...
Zxian Posted January 5, 2006 Share Posted January 5, 2006 Moved to Programming. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now