• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

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?
0
the_kid
Asked:
the_kid
1 Solution
 
MrBugleCommented:
Have a search for a CFX_ZIP - it is a component written for ColdFusion that can provide ZIP/UNZIP functionality for your CF apps. It's not freeware, but I would highly recommend it.
0
 
anandkpCommented:
Hi

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

http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20260611.html

it might interest u

K'Rgds
Anand
0
 
fmediaCommented:
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
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
reincatCommented:
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.
0
 
lfabbricCommented:
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.
0
 
substandCommented:
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.

0
 
the_kidAuthor Commented:
Sorry - thought I closed this...
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now