views:

11

answers:

0

Hello All,

When I access ZIP contents by passing absoluteURL works fine. My code: FileObject test = fileManager.resolveFile("zip:file:C:/myFolder/test/myZip.zip!help.txt"); assertTrue(test.exists());

Same using relative URL - resolvefile(File baseFile,String uri) File file = new File("C:/myFolder"); FileObject test = fileManager.resolveFile(file,"test/myZip.zip!help.txt"); assertTrue(test.exists()); This fails!

Tried fileManager.resolveFile(file,"zip:test/myZip.zip!help.txt"); throws exception.

Please help - I have to access files from a zip based on the relative url.

Thanks