Hi Paul,
I had a quick look into some plugins/code and I think the solution isn't very straightforward.
Webclient needs to work with remote files, which isn't supported in this way.
But there's a workaround for this: use some kind of headless client.
Headless clients run serverside but can execute 'client' code.
You can launch a headless client on the fly, by using the headless client plugin which is shipped with Servoy by default.
(
https://wiki.servoy.com/display/DOCS/headlessclient)
The other way using a headless client is by creating a solution acting like a RESTful webservice. (
https://wiki.servoy.com/display/DOCS/RE ... b+Services)
From the web client you just do the request to this webservice, which can then run your code and even return the zipped file, as you like.
Although code for either of the solutions to create your zipfile will be quite similar, I think my choice would be the RESTful webservice.
Using headless client you have to deal with an async process, it'll also take a bit more code to handle the launch and shutdown nicely.
The RESTful 'client' will just launch itself when requested and will sit in the background waiting for new requests, re-use of the same client works out of the box.
Both solutions take a bit more than sample code to get it working, but I think the links I mentioned will give you a nice idea.