Virtual zip file storage within Revolution?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Clarkey
Posts: 109
Joined: Fri Jun 11, 2010 11:10 am

Virtual zip file storage within Revolution?

Post by Clarkey » Wed Jul 14, 2010 5:15 pm

Hi folks, Is it possible to store zip files temporarily within Revolution - and extract their (XML file) contents - rather than use local disk?

Part of a web service integration I'm working on requires the download of a zip file containing one or more XML files. I'm trying to avoid any installation footprint on the client machine outside the web plug-in. Is there anything I can do within Rev on the client PC or would I need to manage the zip file extracts on my own web server using a Revolution CGI routine?

Any ideas gratefully received.
Best,
Keith..

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Virtual zip file storage within Revolution?

Post by mwieder » Wed Jul 14, 2010 6:21 pm

Possibly - depends on how the file was zipped. If it's gzipped then you can use the compress/decompress functions. Otherwise you'll have to use the revZip functions with a "real" file. I do this by creating a temporary file with the tempname() function, storing the zip file there, then deleting the temporary file when I'm done.

Clarkey
Posts: 109
Joined: Fri Jun 11, 2010 11:10 am

Re: Virtual zip file storage within Revolution?

Post by Clarkey » Wed Jul 14, 2010 7:20 pm

Mark, Thanks for the response and the tempName() function tip - it's definitely a real zip file I'm grappling with. (Strange that there is no mention of this temporary folder/file capability in the Revolution user guide under special folders, as it's really useful to know and nigh-on impossible to find without knowing what the function is called.)
Best,
Keith..

Post Reply