I need a little help on this. Neither CF or Java are my forte but this issue has landed on my desk.

Do anyone have any in site ?

Thanks
Lionel


<!--- GPM this doesn't work LIONEL help! --->
<cfscript>
/*
JPEG output method handles compression
*/
out = createObject("java", "java.io.BufferedOutputStream");
fos = createObject("java", "java.io.FileOutputStream");
fos.init(tempOutputFile);
out.init(fos);
JPEGCodec = createObject("java", "com.sun.image.codec.jpeg.JPEGCodec");
encoder = JPEGCodec.createJPEGEncoder(out);
   param = encoder.getDefaultJPEGEncodeParam(img);
   param.setQuality(quality, false);
   encoder.setJPEGEncodeParam(param);
   encoder.encode(img);
   out.close();
</cfscript>

this line:    param = encoder.getDefaultJPEGEncodeParam(img);
gives this error:
"Method getDefaultJPEGEncodeParam could not be found. Check you have correct method name, the method name casing matches that of the Java class and you've provided the correct number of arguments"

Either img is null or there is something wrong with the version of Java we are using.

--
online documentation: http://openbd.org/manual/
  google+ hints/tips: https://plus.google.com/115990347459711259462
    http://groups.google.com/group/openbd?hl=en

    Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to