<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns="http://purl.org/rss/1.0/"
>
	<channel rdf:about="http://www.coldfusioncookbook.com">
	<title>Coldfusion Cookbook</title>
	<description>Coldfusion Cookbook - Latest 10 Entries</description>
	<link>http://www.coldfusioncookbook.com</link>
	
	<items>
		<rdf:Seq>
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/133/How-can-I-use-ColdFusion-to-serve-files-that-exist-outside-of-the-web-root?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/132/How-do-I-use-encryption-in-ColdFusion?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/131/Is-it-possible-to-connect-to-an-Access-database-on-another-server?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/130/How-to-serve-pictures-from-a-database" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/129/How-do-I-return-XML-from-a-CFC-that-can-be-used-with-Spry?" />
			
		</rdf:Seq>
	</items>
	
	</channel>
	

	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?">
		<title>How can I access/call functions in .Net classes?</title>
		<description>As per the ColdFusion documentation, the &amp;lt;cfobject&amp;gt; tag can be used to access and use .Net classes inside of your CFML code.

&lt;code&gt;
&lt;cfobject
   type = &quot;.NET&quot;
   name = &quot;myInstance&quot;
   class = &quot;myDotNetClass&quot;
   assembly = &quot;C:/Net/Assemblies/dotNetClass.dll&quot;&gt; 

&lt;!--- Call a method---&gt;
&lt;cfset myVar = myInstance.myDotNetClass(5)&gt; 
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?</link>
		<dc:date>2007-12-19T10:54:05-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?">
		<title>How can ColdFusion work with ZIP and JAR files?</title>
		<description>Use the &amp;lt;cfzip&amp;gt; and the &amp;lt;cfzipparam&amp;gt; tags.

&amp;lt;cfzip&amp;gt; provides access to ZIP and JAR files with the following actions: 
delete:  Deletes one or more files from the file. 
list: Lists the contents of the file. 
read: Reads the contents of the file into a variable. 
readBinary:  Reads the contents of a binary archived file into a variable. 
unzip:  Extracts files from the ZIP or JAr file. 
zip: Compress files into a ZIP or JAR file. 

&lt;code&gt;
&lt;cfzip file=&quot;c:/foo.jar&quot; acti...</description>
		<link>http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?</link>
		<dc:date>2007-12-12T12:09:25-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?">
		<title>How can I use ColdFusion to crop an image?</title>
		<description>Use the  imageCrop() function.

&lt;code&gt;
&lt;!---Read in the image ---&gt;
&lt;cfimage action=&quot;read&quot; name=&quot;myImg&quot; source=&quot;foo.jpg&quot;&gt; 

&lt;!--- Crop to 50x50 pixels starting at  X = 1 &amp;  Y=1.
&lt;cfset imageCrop(myImg,1,1,50,50)&gt;
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?</link>
		<dc:date>2007-12-10T12:21:59-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?">
		<title>How can I use ColdFusion to watermark an image?</title>
		<description>Use the imagePaste() function.

The imagePaste() function takes two images and an X Y coordinate, and draws the second image over the first image with the upper-left corner at X Y coordinate. 

&lt;code&gt;
&lt;cfset foo(myBigImage.jpg,myWatermark.jpg,50,50)&gt;
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?</link>
		<dc:date>2007-12-07T11:16:50-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?">
		<title>How can I create a CAPTCHA image with ColdFusion?</title>
		<description>CAPTCHA images contain distorted text that is human-readable but not machine-readable.

The &amp;lt;cfimage&amp;gt; tag allows you to create CAPTCHA images.  You can specify the text you want to distort, the height and width of the text area, font and font size, and the level of difficulty (affects readability).

Note: As per the ColdFusion docs, in order for the CAPTCHA image to display, the width value must be greater than: fontSize times the number of characters specified in text times 1.08.

&lt;...</description>
		<link>http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?</link>
		<dc:date>2007-12-06T17:46:33-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/133/How-can-I-use-ColdFusion-to-serve-files-that-exist-outside-of-the-web-root?">
		<title>How can I use ColdFusion to serve files that exist outside of the web root?</title>
		<description>Use the &amp;lt;cfcontent&amp;gt; tag. You can set the file attribute to point to a file on any local or mapped path on the system on which the web server runs. You also need to set the type attribute (A file or MIME content type, optionally including character encoding, in which to return the page).

&lt;code&gt;
&lt;cfcontent file=&quot;C:\files\example.jpg&quot; type=&quot;image/jpeg&quot;&gt;
&lt;/code&gt;

See also:
&lt;a href =&quot;http://www.coldfusioncookbook.com/entry/39/How-do-I-force-a-file-to-download-instead-of-displaying-inlin...</description>
		<link>http://www.coldfusioncookbook.com/entry/133/How-can-I-use-ColdFusion-to-serve-files-that-exist-outside-of-the-web-root?</link>
		<dc:date>2007-12-03T18:39:02-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/132/How-do-I-use-encryption-in-ColdFusion?">
		<title>How do I use encryption in ColdFusion?</title>
		<description>ColdFusion makes it simply to use encryption to protect sensitive data. The basic process to encrypt data requires you to select a key. This key is used to both encrypt and decrypt the data. The same key must be used for both operations. Once you have selected a key, the code is simple:

&lt;code&gt;
&lt;cfset key = &quot;mysecretsarebetterthanyoursecrets&quot;&gt;
&lt;cfset string = &quot;my credit card number&quot;&gt;

&lt;cfset encrypted_string = encrypt(string,key)&gt;
&lt;/code&gt;

To decrypt the string, just reverse the process...</description>
		<link>http://www.coldfusioncookbook.com/entry/132/How-do-I-use-encryption-in-ColdFusion?</link>
		<dc:date>2007-08-06T09:34:24-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/131/Is-it-possible-to-connect-to-an-Access-database-on-another-server?">
		<title>Is it possible to connect to an Access database on another server?</title>
		<description>Yes.  This setup requires 2 basic steps.  1) the server running ColdFusion will need a mapped network drive to the remote Access DB file.  2) ColdFusion will need to be running under a user account that has access to the Access database on the remote server.   By default, ColdFusion runs under the System account which would not have rights to access the database file on the remote server. </description>
		<link>http://www.coldfusioncookbook.com/entry/131/Is-it-possible-to-connect-to-an-Access-database-on-another-server?</link>
		<dc:date>2007-06-19T08:53:20-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/130/How-to-serve-pictures-from-a-database">
		<title>How to serve pictures from a database</title>
		<description>You are building a web application for a Human Resources department. One part of this application is the display of an employee profile, including a photograph. All this information is stored in a database. 
How do you extract the picture of an employee for display on a web page?

Listing 1 presents the script to create the employee table on a Sybase SQL Anywhere database.

&lt;code&gt;
CREATE TABLE employee (
   id          NUMERIC(12,0)  NOT NULL,
   first_name  VARCHAR(50)    NULL,
   last...</description>
		<link>http://www.coldfusioncookbook.com/entry/130/How-to-serve-pictures-from-a-database</link>
		<dc:date>2007-05-29T17:26:52-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/129/How-do-I-return-XML-from-a-CFC-that-can-be-used-with-Spry?">
		<title>How do I return XML from a CFC that can be used with Spry?</title>
		<description>There are a few things to look out for when returning XML to Spry.  Make sure you set output=false for both the component and the method to suppress any whitespace that may be included with the returned XML. Also note the &amp;lt;cfcontent&amp;gt; tag directly before returning the XML.  This is not needed for returning XML to other consumers such as Flex, but without it, Spry will not recognize it as valid XML.  Special thanks to Bruce Phillips for pointing this out.  Below is a sample components with 1...</description>
		<link>http://www.coldfusioncookbook.com/entry/129/How-do-I-return-XML-from-a-CFC-that-can-be-used-with-Spry?</link>
		<dc:date>2007-03-05T11:58:14-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	

	
	</rdf:RDF>