I want to read and unzip files in mobile browsers on iPhone and Android, what is the best possible solution. Is there a java script way, I don't want a round trip to server. I need the minimal dependency, so flash is ruled out, any other options?
A:
Javascript has no file access so it cannot access the zip files stored on disk ..
--
Take a look at
- JSXCompressor, which zip/unzip implementation in javascript (although you need to somehow feed it the data ..)
Gaby
2010-01-28 14:25:49
that's the question, how to do that using standard methods, I guess Flash can do it, but I am looking for best alternative.
Priyank Bolia
2010-01-28 14:36:17
i am not a mobile developer so i do not know if ActiveX exists there (most likely not). If it does it can handle it .. (update answer to provide some links..)
Gaby
2010-01-28 14:49:10
ActiveX (being a Windows technology) certainly doesn't exist on the iPhone (Apple / BSD) or Android (Google / Linux). And Flash can't do it on the iPhone, since it isn't supported by the platform.
David Dorward
2010-01-28 14:57:51
@David Dorward, have a look at the jsxcompressor link... might be what you are after..
Gaby
2010-01-28 16:22:56
@Gaby — I’m not after anything…
David Dorward
2010-01-28 16:32:29
@David, lol did not mean that in some bad way ... 'what you are after' as in usefull at what you are trying to do
Gaby
2010-01-28 18:54:17
@Gaby — I'll rephrase: I am not Priyank Bolia. I did not ask the question.
David Dorward
2010-01-28 19:24:54
@David , oups ... sorry for the mix-up and thanks for the heads up .. needed that :)
Gaby
2010-01-28 19:40:27
I don't think it can have zip files, it just some basic compression of data, zip files contain multiples files inside them, have some header and blah blah... This won't work, and modifying it to support zip files will take years for a novice like me.
Priyank Bolia
2010-01-29 07:19:43
@Priyank, ok .. sorry it is not suitable ..
Gaby
2010-01-29 12:05:26
There's a Javscript unzip library. see this question: http://stackoverflow.com/questions/2163857/unzipping-zip-archives-with-javascript-in-firefox-3-6
Cheeso
2010-02-16 02:49:08
Hey, thanks @Cheeso. The bin file reading utility is great !
Gaby
2010-02-16 04:20:21
A:
There's a Javascript library that unzips basic ZIP files. http://stackoverflow.com/questions/2163857/unzipping-zip-archives-with-javascript-in-firefox-3-6
Cheeso
2010-02-16 02:49:40