Zip multiple files without a folder

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Zip multiple files without a folder

Postby vik.lamp.vl » Tue Dec 06, 2022 5:07 pm

Hey guys,

i need your quick help. I need to zip multiple files, so that if you open the .zip you see directly the files (pdf´s) and not a folder first.

Used tec: Servoy 2020.03 - SmartClient.

I already tried and With one file its not a problem aswell as a folder but then the zip got the wrong structure.

Zip a folder: > testfolder > testfile.pdf

Zip one file: > testfile.pdf

But i need. > testfile1.pdf, testfile2.pdf, ... and are not taking a array of filenames. I always get a "cant find file" error.
Maybe im doing something wrong?

Thanks in advance,
Posts: 10
Joined: Wed May 26, 2021 3:37 pm
Location: Germany

Re: Zip multiple files without a folder

Postby sean » Tue Dec 06, 2022 6:54 pm

Hi Vik,

Can you please post your code sample for the svyUtils approach?
Software Engineer
Servoy USA
Posts: 347
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 4 guests