Friday, February 03, 2012    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< May 2007 >>
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Search

Categories
 • Acrobat (5) [RSS]
 • Adobe (110) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (34) [RSS]
 • AdobeMAX11 (27) [RSS]
 • AIR (297) [RSS]
 • Appearances (217) [RSS]
 • Books (86) [RSS]
 • CFEclipse (15) [RSS]
 • Cloud (1) [RSS]
 • ColdFusion (1477) [RSS]
 • ColdFusion Builder (22) [RSS]
 • Data Services (42) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (356) [RSS]
 • Flex (561) [RSS]
 • Home Automation (5) [RSS]
 • HTML5 (21) [RSS]
 • JavaScript (2) [RSS]
 • Jobs (130) [RSS]
 • jQuery (14) [RSS]
 • JRun (14) [RSS]
 • Labs (62) [RSS]
 • LiveCycle (37) [RSS]
 • MAX (284) [RSS]
 • Mobile (238) [RSS]
 • Regular Expressions (19) [RSS]
 • RIA (21) [RSS]
 • SQL (45) [RSS]
 • Stuff (554) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (167) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Entry / Main
May 22, 2007

ZIP And JAR File Access In Scorpio

During last night's usergroup presentation I mentioned another new Scorpio tag, one we've not yet discussed publicly, and the tag that will now appear last in alphabetical CFML tag listings. <CFZIP> provides access to ZIP and JAR files, supporting the following actions:

  • DELETE deletes one or more files from an archive file.
  • LIST lists the contents of an archive file.
  • READ reads the contents of an archived file into a variable.
  • READBINARY reads the contents of a binary archived file into a variable.
  • UNZIP extracts files from an archive file.
  • ZIP compressed files into an archive file.

A child <CFZIPPARAM> tag is also supported as an optional way to provide file names and other attributes.

Comments
This Is JUST Great !

We have been using the third party tools to do these kinda of stuff.

Anyways, One quick question I had was is there any sort of documentation for the new tags which are supported in Scorpio. I mean it would be easier for us to test implement if we can get sort of documentation on them. Or is this something we have to wait till its release ? Please Advice.
# Posted By Mujeebur Rahmansaher | 5/22/07 2:53 PM
COOL!!! Adobe's invented a new archive file format!

What sort of specs are there for the ZAP files? Filename length? Empty folders? Compression algos?

Come on, Ben... details details! ;)
# Posted By Jared Rypka-Hauer | 5/22/07 3:19 PM
ZAP files? I was at Lansing last night and you didn't mention "ZAP" files in CF8 there! LOL
# Posted By John Farrar | 5/22/07 3:53 PM
Yeah, right, nice guys - kick a guy while he is sleep deprived ;-) Wiseguys! Fixed.

--- Ben
# Posted By Ben Forta | 5/22/07 3:57 PM
lol - The funny part is - WAAAAAAAAAAAAAY back in the day when.... ZAP actually WAS a file compression program - based off of an LZH alogrithm. I believe it was for the either the old Amiga platform or for OS/2 Warp - I can't remember which.
# Posted By Sid Wing | 5/22/07 5:13 PM
I have to give it up. You all were *definitely* thinking about the developer with this release. That makes this developer very happy.
# Posted By Rob Wilkerson | 5/23/07 8:56 AM
I really enjoyed the Coldfusion User Group in Lansing the other night. Ben really knows his stuff and it was a real pleasure meeting him. Go Ben Go!! Coldfusion is now my new passion for our companies website and one day to help others as well!!

Thanks Ben and I look forward to meeting you again!
# Posted By Ray Salyer | 5/23/07 10:31 AM
Awww, Ben... you know we love you man (in that manly sort of way)!

You guys always bust your behinds for us in a big way and we appreciate it more than you can know.
# Posted By Jared Rypka-Hauer | 5/23/07 10:40 AM
I am using winrar, satisfies. and zip fignya
# Posted By Chair | 5/25/07 4:58 AM
A great tag, but.... I have one question about using cfzip action=unzip, is there a way to unzip an archive file containing file names with accents?

Thanks
# Posted By Philippe Thiout | 1/21/08 6:47 PM
I have the same question as the last guy. I need to be able to unzip files whose names contain characters such as é, ç, ö etc

Currently this does not work. Can anyone help?

Thanks
# Posted By Garry Viner | 1/14/09 8:05 PM
I am using CFZIP to read in .xlsx files - when i dump the content, all strings come across as numbers...? like A is 5, B is 6 but AB is NOT 56 its another number. However all numeric content stays intact. Anyone know how to resolev the string auto-converting to numers issue?
# Posted By CF Guy | 3/10/09 5:20 PM

  © Copyright 1997-2009 Ben Forta, All Rights Reserved