Learning ColdFusion 8: CFZip Part III - Reading Zip File Entries

<!---
	Read the mud_monster.jpg file directly into a
	ColdFusion binary data variable.
--->
<cfzip
	action="readbinary"
	file="#ExpandPath( './data.zip' )#"
	entrypath="images/mud_monster.jpg"
	variable="binImageData"
	/>
 
<!---
	Write the data to a file on the local file
	system. This is basically like performing
	a single-file zip extraction.
--->
<cffile
	action="write"
	file="#ExpandPath( './extracted_image.jpg' )#"
	output="#binImageData#"
	addnewline="false"
	/>

For Cut-and-Paste