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 it2be.zip() and svyUtils.zip(). With one file its not a problem aswell as a folder but then the zip got the wrong structure.

Zip a folder:
test.zip > testfolder > testfile.pdf

Zip one file:
test.zip > testfile.pdf

But i need.
test.zip > testfile1.pdf, testfile2.pdf, ...

it2be.zip() and svyUtils.zip() are not taking a array of filenames. I always get a "cant find file" error.
Maybe im doing something wrong?

Thanks in advance,
Vik
vik.lamp.vl
 
Posts: 25
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
sean
 
Posts: 370
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 13 guests