Hello, 

Using CF8 I'm building a app for a client that needs to retreive EXIF data from 
.jpg files not local to the CF server. 

Using the following code...

1   <CFset photoURL="http://www.foo.com/photo.jpg";>
2   <CFimage Source="#photoURL#" action="read" name="photo">
3   <CFSET PhotoEXIF=ImageGetEXIFMetadata(photo)>
4   <CFDUMP var="#PhotoEXIF#">

Processing stops at line 3 and CF8 spits out 

"Exception occured in JPG processing. segment size would extend beyond file 
stream length" 

When I attempt to get around this issue by writing the image out to a temp file 
using the following....

1   <CFset photoURL="http://www.foo.com/photo.jpg";>
2   <CFimage Source="#photoURL#" action="write" overwrite="yes" 
destination="\phototemp.jpg">
3   <CFimage Source="\phototemp.jpg" name="photo">
4   <CFSET PhotoEXIF=ImageGetEXIFMetadata(photo)>
5   <CFDUMP var="#PhotoEXIF#">

This executes, but the CFDump returns an Empty struct  After looking at 
phototemp.jpg as written by CF8 I find it does not contain any EXIF data. I've 
also tried retrieving the .jpg using CFHTTP and the EXIF is lost that way as 
well.

Has anyone gotten this to work? Any ideas?

Thanks. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:285556
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