SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Read Entries Only

Last post 10-05-2008 9:31 PM by JohnReilly. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 09-11-2008 8:15 AM

    Read Entries Only

    Hi there,

    Can we read entries only from compressed Zip, RAR or any other file extensions using this API when the compressed file is password protected?

    I need to read only entries from password protected compressed files.. how can i do that..?

     

    Help me
    miztaken

     

     

     

  • 09-12-2008 11:23 AM In reply to

    Re: Read Entries Only

    Hi there, I have been using this API and i need to know if we can get the entries from a compressed file (zip or rar or anyother) even if its password protected? I dont want to open those entries or save then using streams but all i want is to get their names? But its throwing exception for now? ie. getNextEntry() throws exception and the whole process is unusual as well. It extracts entries of some documents and for rest it throws exceptions.. I tried using skip() after i get exception but the object wont work after it throws exception? Please help me its an urgent
  • 09-13-2008 3:21 PM In reply to

    Re: Read Entries Only

    Older versions of the library would behave like this.  What version are you using?

    Cheers, -jr-

     

  • 09-15-2008 1:35 PM In reply to

    Re: Read Entries Only

    Hi there, I am using version 0.5.2312.9226 Is/Was this the problem?
  • 09-15-2008 8:10 PM In reply to

    Re: Read Entries Only

    Also is there anyway we can know if the archive is password protected or not before looping through available entries?


  • 10-05-2008 9:29 PM In reply to

    Re: Read Entries Only

    Hi,

    Yes that is very old.  Have a look at the latest version it should work for you.

  • 10-05-2008 9:31 PM In reply to

    Re: Read Entries Only

    Hi,

    In the general case you cannot do this as enryption is on a per entry basis.  However typically its all or nothing so whichever entry you look at will  be encrypted or not.  ZipEntry has an IsCrypted property you can look at for each entry you are interested in.

     

    hth, -jr-

Page 1 of 1 (7 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.