Thanks to everybody for the help! I will contact the folks at jcaptcha (a very popular captcha implementation) and see about helping them migrate their code from the com.sun.* packages.
I think if we hit a few of the projects out there in javaland, folks will then have the examples they need to properly implement imaging with their own projects. Phillip ----- Original Message ----- From: "Phil Race" <[EMAIL PROTECTED]> To: "Roman Kennke" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 22, 2007 11:21:49 AM (GMT-0500) America/New_York Subject: Re: [JAVA2D] JDK6 and com.sun.image.codec.jpeg.JPEGCodec compile failure Philip, Absolutely, You really shouldn't use com.sun.image.codec.jpeg.JPEGCodec. Code that uses this can't expect to run on all compatible Java implementations. Image I/O has been around since 1.4 and is the standard supported solution. FYI this is quite timely as we are soon to propose at the very least the complete hiding of this API to new development in JDK 7. I will send out more email on this sometime soon. -phil Roman Kennke wrote: > Hi Philip, > >> While I understand one should not use this class, a lot of projects still do. > > You really shouldn't! ;-) > >> Under JDK6, the following is actually resulting in a compile failure. >> com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be >> removed in a future release >> >> Can anyone steer me towards the proper way to outputting a jpeg image if we >> can't use the com.sun.* classes? > > javax.imageio.ImageIO.write(image, format, stream) is most likely what > you want. > > Cheers, Roman > > -- > http://kennke.org/blog/ > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".