1 / 11

CFZIP: A cursory introduction

Explore the capabilities of CFZIP, a ColdFusion tag that reads, modifies, and writes ZIP format files. Learn how to read/list contents, create a new ZIP file, unzip existing files, and more. Includes basic syntax and examples.

daye
Download Presentation

CFZIP: A cursory introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CFZIP: A cursory introduction • Jared Rypka-Hauer • Adobe Community Expert - ColdFusion

  2. Who Am I? • Contributor: • Model-Glue • ColdSpring • CFEclipse • Member: • Adobe Community Experts, formerly Team Macromedia • Team Model-Glue • Team Fusebox • Team Fusion

  3. CFZIP: A cursory look • What’s it for? (someone had to ask) • It reads, modifies, and writes ZIP-format files • Does it to anything else? • YES! It works with any zip-format file, so it will work with Java JAR, EAR, and WAR files, as well as any other ZIP-based archive format!

  4. What we’ll cover... • Reading/listing contents • Creating a new zip file • Unzipping an existing zip file • Reading one resource at a time • Q & A

  5. Basic Syntax • <cfzip file=”file/or/dir” destination=”#myZipPath#” /> • That zips up a file or folder to {destination} • Other sorts of things require expanded syntax, like...

  6. Read/List Contents • Make sure everyone’s still awake! • Jump to code...

  7. Read single file entry • Reads zip entries as text • Reads them in as binary, too! • BUMMER: You have to tell it which is which. • Expand from example: filters! w00t!

  8. Create a new ZIP file • Requirements: • Full Moon • 1 goat • 1 large kettle • Water • Salt to taste • Seriously... jump to code

  9. UNZIP! (no, not THAT unzip...) • OK, fine, we’ll just jump to the code then... sheesh.

  10. Other things it can do • One/many files at a time: • delete entries (filter-capable) • “update” (basically an overwrite) • list/read are unique - list by filter/read via list • Filters can be used with: • zip • unzip • delete • list • Filters don’t work with read or readBinary

  11. Resources • New LiveDocs pages for CF8: • http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_u-z_5.html#2851426 • My blog: • http://www.web-relevant.com/blogs/cfobjective • MXNA/FullAsAGoog • http://weblogs.macromedia.com/mxna/ • http://www.fullasagoog.com/ • “Goog” is slang for “egg” • “Full as a goog” means “chock full” in Australia • “Chock full” of Fusioney goodness, that is!

More Related