I cannot use third party software/libraries and have a zip file that I have to read in WPF application and get the binary data (that represents the image). That zip file contains about 7000 images and I have to find the right one by its name. How can I get the ZipEntry (analog in Java)?
http://download.oracle.com/javase/1.4.2/docs/api/java/util/zip/ZipEntry.html
Sincerely,
Roman
Sorry to say it but that’s a ridiculous constraint. If that’s the case, you will have to struggle with whatever there is in the BCL to handle zips. And believe me, there isn’t much. The System.IO.Packaging namespace could be a good start. And if you are not using .NET 4.0, well, my condolences to you. The zip specification might be a good read (for me it wouldn’t be a good read as a matter of fact).
I’d probably use dotnetzip or SharpZipLib or something and have plenty of time solving some real world problems, not ones that have already been solved.