Link to home
Start Free TrialLog in
Avatar of the_kid
the_kid

asked on

creating a zip file

I have a CF app that creates an xml file. I want to include functionality so that when the xml file is created it is also zipped, with the ability for me to name the zip file...Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of MrBugle
MrBugle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi

pls follow this link - it was my previous post - & its a gr8 utility ...

https://www.experts-exchange.com/questions/20260611/Can-any-body-help-out-XCEEDZIP-DLL.html

it might interest u

K'Rgds
Anand
Avatar of fmedia
fmedia

If you have java installed in your system you can easily create a zip using java and accessing it using COM. Actually there's a already made udf around, check this :

http://www.cflib.org/udf.cfm?ID=744

regards,
idss
Yes I have used CF_ZIP too on a site since September. It's made by Ben Forta. You do have to pay for each server that uses this tag, but the documentation of it is very clear, easy to follow and once you've mastered it, you can use it for all sites running on that machine.  It gets the job done and gives you piece of mind it will continue working.
There is a CFX_Zip tag, (That comes as an example to build custom java tags) you could use.  I honestly cant remember where it is, just look within the java directorys under coldfusion.  (Look for cfx)

Works well and is pre built.
you could also get a command line zip utility and call it using

<CFEXECUTE
    NAME=" ApplicationName "
    ARGUMENTS="CommandLine Arguments"
    OUTPUTFILE="Output file name"
    TIMEOUT="Timeout interval in seconds">
</CFEXECUTE>

then you choose the name of the file, and can manipulate it as you normally would.

Avatar of the_kid

ASKER

Sorry - thought I closed this...