I'm trying to make a java call from CF to determine an image
attribute (if you've seen this in a previous thread, sorry).  The
java calls that I'm making are producing errors.  I'm using CF 6.1.
The calls and errors are:
<cfset ImageInfo = StructNew()>
<cfset ImageObject =
createObject("java","javax.imageio.ImageIO").read(#CFFILE.serverFile#)>

I eventually hard-coded a name into jFileIN.  Still, I get,
Error: The selected method read was not found.

and
<cfset jFileIn = CreateObject("java","java.io.File").init(ARGUMENTS.FileLoc)>,
which I hard-coded into:
<cfset imgFile = createObject("java"
"javax.swing.ImageIcon").init("http://hhp.umd.edu/Golf2004/images/GolfLogo2.gif")>
and I get
Error: Object Instantiation Exception.

There was a line in the createObject documentation that suggested
that this might not be enabled, but our webhosting people said that
it's enabled and works fine, so I'm a bit lost here.

I need to be able to get this information and any thoughts are appreciated.

--
Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to