Skip to main content
Known Participant
March 25, 2009
Question

problem with writing <cfimage>

  • March 25, 2009
  • 3 replies
  • 343 views
I am having the problem outlined here

http://www.bennadel.com/blog/1289-ColdFusion-8-0-1-Bug-Coldfusion-Image-ImageWriter-ImageWritingException.htm

From adobe
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1

Seems the file is 'locked' when trying to write it. Is there a way around this (I tried the hotfix with no luck), can duplicate or write the file to memory?

Any other suggestions welcome (code attached).
    This topic has been closed for replies.

    3 replies

    HulfyAuthor
    Known Participant
    March 25, 2009
    Thanks,

    It was the latest patch in the end I just read it to memory and then write to file, extra line but it works

    <cfset ImageScaleToFit(myImage,200,"","bicubic")>
    <cfimage source="#myImage#" action="read" name="tempFile">
    <cfimage source="#tempFile#" action="write" destination="#ExpandPath("#application.galleryPath##galleryName#/thumbs\#svrfile#")#">

    Inspiring
    March 25, 2009
    ... Also, verify that you installed the later patch. There were two versions with the same name. The later one has an updated date of: 8/15/08. In addition, be sure to restart CF before testing the patch.

    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402604
    Inspiring
    March 25, 2009
    Hi,

    Have you gone through the comments section of Ben's article?.. Look for Gareth's workaround posted there..