Latest Posts

Patch for CFImage and java.io.FileNotFoundException

Posted on August 20, 2008, under ColdFusion | 5601 Views

Stumbled across this peach. A little used resize page was tossing errors. Instead of looking for a solution, I ripped through the code trying to figure out where I had screwed up. Turns out I didn't. Lesson learned - again.

Patch for CFImage and Image functions in ColdFusion 8.0.1 Issue

CFImage and the image functions can leave an image file locked after an initial write to disk in Adobe ColdFusion 8.0.1. This can cause subsequent operations on the image to fail with an error similar to the following:

"An exception occurred while trying to write the image. Ensure that the destination directory exists and that ColdFusion has permission to write to the given path or file. Cause: java.io.FileNotFoundException: /pathToImage/portrait.jpg"

The CFimage function may also write the image to the directory ColdFusion is running from instead of the proper directory.

Link to Hotfix