CF Snippets & Hints
Common crap that you run across with ColdFusion
writeDump
writeDump() can cause an issue when used in a CFC. For example, if you try the following in a CFC method, you'll get a "Method writeDump with 1 arguments is not in class coldfusion.runtime.CFComponent" error:
Obviously writeDump is a build in CF method*, so this error makes little since. The work-around is to use the savecontent method/command and save the writeDump() output to that like this:
Virtual File System
Starting with CF9, ColdFusion makes a RAM-based virtual file system (VFS) available for reading file-based information into memory to be used immediately. This provides an excellent alternative to fetching remote data and storing it first on the server file system when it isn't needed to preserve the data.
The following code shows an example of fetching a remote RSS file, storing it in the VFS, and then looping through it's content for display:
Last updated
Was this helpful?