I ran across this article on the ImageReader class that will probably
help you. There is some nice sample code.
http://java.sun.com/products/jfc/tsc/articles/javaOne2001/600/

This one as well...although the example code seems a lot more complex.
http://www.devx.com/java/free/articles/travis01/travis01-3.asp

Ray's filereader UDF shows how to get a file object...
http://www.cflib.org/udf.cfm?ID=417

-- 
 Jon
 mailto:[EMAIL PROTECTED]

Thursday, July 18, 2002, 10:35:13 AM, you wrote:
twrc> Ok, I brought this up awhile ago.  Basically finding a way to replace
twrc> CFX_Image whatever.  I'm closer to the answer now, but ... my half ass
twrc> knowledge in java is in the way.

twrc> With the standard CFMX JRE you can't get to the javax.imageio.ImageReader

twrc> I downloaded 'j2sdk1.4.0_01' and installed it on my machine and pointed
twrc> cfmx to the jre directory.  Restarted the server for the CFMX to see the
twrc> new jre.  Didn't work at first, so I rebooted the machine and ... it
twrc> works.

twrc> ---------
twrc> <cfscript>
twrc> reader = createObject("java","javax.imageio.ImageReader");
twrc> </cfscript>
twrc> <cfdump var="#reader#">
twrc> ---------

twrc> The dump gives me a nice big bright red answer.  None of these are methods
twrc> though so, I'm stumbling around again.  I'm guessing that I need to get at
twrc> java.io.File to read the file first and then pass it into the imageReader
twrc> via an inputStream or something.

twrc> I'm sure there's people on this list that are more fluent in java than I
twrc> and was wondering if any of you guys could point me in the right
twrc> direction.

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to