I can but it still needs to be able to at least delete the file if it
doesn't meet the rez requirements.. Think I'll just bite the bullet and
implement CFX_imageutils - was hoping to avoid forcing a resize if needed as
I don't like the quality that outputs. Ahh well, I guess the user should
take SOME responsibility for what they're doing. Looking forward to doing
the CF8 version of this component! Thanks for the reply :)

Lars Gronholt
________________________
Web Application Developer
eNTITy1 Pty Ltd
[EMAIL PROTECTED]
ph: +618 8941 1162
fax: +618 8941 1167
http://www.entity1.com


-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Monday, 12 November 2007 3:52 PM
To: CF-Talk
Subject: RE: missing Java close() method in ImageInfo.class


> 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!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293179
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to