Getting The URL Of ColdFusion 8's Temporary Images

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>ColdFusion 8 Temporary Image URL</title>
</head>
<body>
 
	<cfoutput>
 
		<h1>
			Getting The Source of a Temporary ColdFusion Image
		</h1>
 
		<!--- Read the image into a ColdFusion image object. --->
		<cfimage
			action="read"
			source="./cute_blonde.jpg"
			name="imgGirl"
			/>
 
		<!---
			Get the source of the temporary image. This action
			will write the image to a temporary file which will
			exist for only a few minutes.
		--->
		<cfset strImageURL = ImageGetUrl( imgGirl, "png" ) />
 
		<p>
			URL: #strImageURL#
		</p>
 
		<p>
			<img
				src="#strImageURL#"
				width="#imgGirl.GetWidth()#"
				height="#imgGirl.GetHeight()#"
				alt="Cute blonde girl"
				title="This is a temporary photo generated by ColdFusion 8"
				border="0"
				/>
		</p>
 
	</cfoutput>
 
</body>
</html>

For Cut-and-Paste