| By Ben Forta | Article Rating: |
|
| June 13, 2007 06:00 PM EDT | Reads: |
25,956 |
The following article is a compilation of Ben Forta's blog entries from his ColdFusion 8 usergroup tour.
ColdFusion 8-Supported Image Formats
Lots of you have been asking about ColdFusion 8's planned <CFIMAGE> tag, wanting to know what image formats will be supported (many of you are asking about GIF and PNG specifically). As long as you keep in mind that ColdFusion 8 is a work-in-progress and that features and specs can change...
ColdFusion 8 has two new functions: GetReadableImageFormats() returns a list of the supported readable image formats, and GetWriteableImageFormats() returns a list of supported writable formats. The following code snippet shows all supported formats:
<cfset r=GetReadableImageFormats()>
<cfset w=GetWriteableImageFormats()>
<cfoutput>
Readable (#ListLen(r)#): #r#<br>
Writeable (#ListLen(w)#): #w#<br>
</cfoutput>
Running this code (in Beta 2, remember, this can/may still change) displays the following:
Readable (15): BMP,GIF,JFIF,JPEG,JPEG 2000,JPEG-LOSSLESS,JPEG-LS,JPEG2000,JPG,PNG,PNM,RAW,TIF,TIFF,WBMP
Writeable (15): BMP,GIF,JFIF,JPEG,JPEG 2000,JPEG-LOSSLESS,JPEG-LS,JPEG2000,JPG,PNG,PNM,RAW,TIF,TIFF,WBMP
And, yes, GIF and PNG are both supported (both read and write).
Getting Started with the ColdFusion Debugger
After a seven-year hiatus, ColdFusion once again has an interactive debugger, and this time it's built on top of Eclipse (and uses the same debugging interface as Flex Builder and other Eclipse plug-ins). If you are interested in taking the debugger for a spin, here's what you need to know to get started:
First of all, you need ColdFusion 8. If you don't have it yet, get it here: http://labs.adobe.com/technologies/coldfusion8/.
You'll also need the ColdFusion 8 Eclipse extensions, and these must be installed (here is some installation help: www.forta.com/blog/index.cfm/2007/5/30/ Installing-ColdFusion-8-Eclipse-Extensions).
Before you can use the interactive debugger, enable debugging support in ColdFusion. Here's what you need to do:
- Open the ColdFusion Administrator.
- Select "Debugger Settings" in the "Debugging & Logging" section.
- Check "Allow Line Debugging".
- The debugger needs a port to communicate over. If you can't use the default, change it (just be sure to use an unused port, and you can't use the port that ColdFusion itself is on).
- By default, ColdFusion allows up to five concurrent debugging sessions; you can raise or lower this value as needed.
- Click "Submit Changes" and restart ColdFusion as you are instructed to do.
Now that debugging is enabled, configure Eclipse to tell it which ColdFusion server to debug against. Servers need only be defined once, and once defined you may debug against them as needed. You can define as many servers as you need, local and remote, as long as the server has RDS enabled (and you have an RDS login).
The first thing you need to do in Eclipse is define the RDS settings for your ColdFusion server. These settings are used by the debugger, as well as the wizards, RDS panels, and more. To define your RDS connection, do the following:
- In Eclipse, select Window->Preferences to display the Preferences dialog.
- Select ColdFusion in the tree, expand the selection, and select RDS Configuration.
- Click New to add a new server, or just select any server to edit it.
- Provide a description, host name, port, and login details, and then save. To use your local ColdFusion server, specify 127.0.0.1 as the Host Name, 8500 as the Port (if using the integrated HTTP server), leave the Context Root blank, and provide the login information.
- Click "Test Connection" to make sure the RDS connection is working, and then click OK.
Now that your RDS connection is defined, define the ColdFusion servers you wish to debug against. Here's what you need to do:
- Locate the Debug button in the toolbar; it's the one with the little green bug on it.
- Don't click the button. Instead, click the down arrow to the right of it and select "Debug..." to display the Debug dialog, which is used to manage debugging configurations.
- The Eclipse debugger is used to debug all sorts of applications created in all sorts of languages, and along the left of the dialog you'll see a list of application types that can be debugged. Select "ColdFusion Application".
- You'll see any defined ColdFusion debugging servers under the "ColdFusion Application" branch. To add a ColdFusion server, click the New button (the leftmost one above the list) while you have "ColdFusion Application" selected.
- Name this server and then select the RDS server to use from the dropdown list.
- If you are debugging against a local server (running on the same machine as Eclipse), you can ignore the mappings section. If ColdFusion is on a remote server, you'll need to define mappings here.
- Click "Apply" to save your changes.
Published June 13, 2007 Reads 25,956
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Ben Forta
Ben Forta is Adobe's Senior Technical Evangelist. In that capacity he spends a considerable amount of time talking and writing about Adobe products (with an emphasis on ColdFusion and Flex), and providing feedback to help shape the future direction of the products. By the way, if you are not yet a ColdFusion user, you should be. It is an incredible product, and is truly deserving of all the praise it has been receiving. In a prior life he was a ColdFusion customer (he wrote one of the first large high visibility web sites using the product) and was so impressed he ended up working for the company that created it (Allaire). Ben is also the author of books on ColdFusion, SQL, Windows 2000, JSP, WAP, Regular Expressions, and more. Before joining Adobe (well, Allaire actually, and then Macromedia and Allaire merged, and then Adobe bought Macromedia) he helped found a company called Car.com which provides automotive services (buy a car, sell a car, etc) over the Web. Car.com (including Stoneage) is one of the largest automotive web sites out there, was written entirely in ColdFusion, and is now owned by Auto-By-Tel.
![]() |
turbotad 07/02/09 11:42:00 PM EDT | |||
Question: I'm pretty new to ColdFusion, but am more experienced running J2EE type boxes. I'm trying to set up a ColdFusion dev server on a VM with limited memory, and I'm trying to trim it back so that it doesn't pork out and use every bit of memory on any computer within a 10 mile radius. I.e. trying to get it so that it perhaps doesn't fire up all of the Flash remoting servlets or other things I don't need for basic CF functionality, in hopes that this might trim back the RAM usage. Any help you might be able to be on this? |
||||
- Practical Approaches for Optimizing Website Performance
- The Difference Between Web Hosting and Cloud Computing
- Yahoo! to Present at 4th International Cloud Computing Expo
- WPF Controls by DevExpress
- Visual Studio IDE Productivity Tools
- Eval JavaScript in a Global Context
- EC Wrong, Wrong, Wrong – and Sloppy to Boot: Intel
- Windows 7 – Microsoft’s First Step to the Cloud
- Social Media on Ulitzer - Strategy Nets New AUM for RIA
- This Bing Thing Is Working
- Rich Content Rotator for ASP.NET
- RIAs for Web 3.0 Using the Microsoft Platform
- Practical Approaches for Optimizing Website Performance
- The Difference Between Web Hosting and Cloud Computing
- Yahoo! to Present at 4th International Cloud Computing Expo
- Flexing Your .NET 3.5 Skillset
- Silverlight Applications 70% Smaller
- I Have Three Free Guest Passes for the iPhone Developer Summit
- WPF Controls by DevExpress
- Visual Studio IDE Productivity Tools
- Where Are RIA Technologies Headed in 2008?
- Accessing the ASP.NET Authentication, Profile and Role Service in Silverlight
- Silverlight 2 - Adobe Flex Killer Is on Its Way!
- Building Great AJAX Applications Using ASP.NET
- Kaazing Announces Support for Silverlight
- Is the Silverlight Adoption Rate Artificially Inflated?
- Spice Up User Experience with Silverlight
- VS 2008 Builds AJAX-based Web Apps
- Rich Content Rotator for ASP.NET
- Getting Started with Silverlight: Zero to Hero




































