Can't you just read the file as a file object inside a try/catch and if it
fails, the file is assumed to be corrupt

_____

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 200b

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

-----Original Message-----
From: AJ Mercer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 1:32 AM
To: CF-Talk
Subject: java unzip :: verify file

Hi,

I have a cf script that is using java.util.zip.ZipFile to unzip - works
great, except when...

If the zip if corrupt it kills jRun.

Does any one know if there is a way to verify / check the zip file to ensure
it is not corrupt?


Because it is dieing at the jRun level, I can not use cfcatch.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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

Reply via email to