Re: Downloading and data mapping from zip-archive

Benjamin Smedberg <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
On 7/9/10 6:28 AM, Cyril wrote:
> Please help me to find a solution of the following problem: there is
> some zip-archive which contains html, css, js etc. I need a browser
> calls to my code and then the code takes the data from zip-archive. Is
> it possible to realize it without the new protocol of OS (a solution
> should be cross-platform)? Thank you.

Mozilla already has a built-in protocol which would let you navigate this 
data directly, the jar: protocol. A JAR is just a ZIP file served with a 
specific MIME type.

jar:http://www.example.com/foo.jar!/index.html will load /index.html from 
within foo.jar. foo.jar needs to be served with the application/java-archive 
MIME type.

https://developer.mozilla.org/en/Security_and_the_jar_protocol has a few 
more details.

--BDS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.