How to solve this issue Urgent pls help

P

Prabahar

Hi all,

Actually i have one file as my.zip(Its password encrypted file).
Am access the file from java coding.

But whenever am trying to access the my.zip(Its password encrypted
file).
Its will show the error like this....

java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at Test.main(Test.java:45)


How can i pass the password to the winzip????
And How am unzip the my.zip(Password file ) from the java code??

PLS help....


thanks....
 
L

lord.zoltar

Prabahar said:
Hi all,

Actually i have one file as my.zip(Its password encrypted file).
Am access the file from java coding.

But whenever am trying to access the my.zip(Its password encrypted
file).
Its will show the error like this....

java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at Test.main(Test.java:45)


How can i pass the password to the winzip????
And How am unzip the my.zip(Password file ) from the java code??

PLS help....


thanks....

What are you using to encrypt the file? WinZip?
It sounds like WinZip is adding some extra data to the file (probably
for encryption) that the Java library you are using does not
understand. Maybe there is a WinZip API you can use that CAN handle
the encryption...
 
P

Prabahar

What are you using to encrypt the file? WinZip?
It sounds like WinZip is adding some extra data to the file (probably
for encryption) that the Java library you are using does not
understand. Maybe there is a WinZip API you can use that CAN handle
the encryption...



hi friend,,

Thanks for your favorable reply.... Actually am using the
Winzip zip file. I want to unzip the .zip(Winzip) file. If java
doesn't understand the .zip file.. Do you knw that Winzip API. How can
i solve this problem????...

if any coding means pls send me........
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top