How to solve this issue Urgent pls help

Discussion in 'Java' started by Prabahar, Oct 10, 2007.

  1. Prabahar

    Prabahar Guest

    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....
    Prabahar, Oct 10, 2007
    #1
    1. Advertising

  2. Prabahar

    Guest

    Prabahar wrote:
    > 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...
    , Oct 10, 2007
    #2
    1. Advertising

  3. Prabahar

    Prabahar Guest

    On Oct 10, 4:32 pm, wrote:
    > Prabahar wrote:
    > > 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...




    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........
    Prabahar, Oct 21, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RamaKrishna

    Reg: Help me out pls, urgent..............

    RamaKrishna, Aug 19, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    310
    RamaKrishna
    Aug 19, 2003
  2. Curt_C [MVP]

    Re: Urgent pls Help

    Curt_C [MVP], Aug 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    383
    Curt_C [MVP]
    Aug 24, 2004
  3. Raghu Raman

    Urgent help pls.Session_onend does'nt fire

    Raghu Raman, May 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    384
    Raghu Raman
    May 6, 2005
  4. Rahul S.
    Replies:
    1
    Views:
    306
    Joona I Palaste
    Oct 26, 2004
  5. Rahul S.
    Replies:
    3
    Views:
    597
    Flash Gordon
    Nov 1, 2004
Loading...

Share This Page