> Currently writing the 7 and 6.1 variants of this portion and > I'm having difficulty with the ImageInfo class as recommended > in Chapter 25 of the CFMX Advanced App Dev book (3rd ed). The > problem is that I can get all the info i need using the java > class, but when I go to perform any operations on the file > after that, It wont let me. cffile move functions like a copy > - doesnt remove the original from the temp folder, and cffile > delete throws an error: > ColdFusion could not delete the file > "D:\inetpub\wwwroot\xxx\users\temp\aegishead1.jpg" for an > unknown reason. > > the file path is correct as are the permissions on the directory. > > one thing i've noticed is the class does not appear to have a > close() method, and the examples in the app dev book didn't > show any cffile processing being done on the files after the > createobject() that used the class. > > any ideas how i can get around this? I really need to trap > those sizes as well all know how end users function =)
Can you move the file before using the Java class? I've had problems attempting two operations on the same file in the same request; the first seems to place a lock on the file. If you can reverse their order, the fact that you're locking the file might not matter. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293100 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

