This discussion is archived
3 Replies Latest reply: Oct 30, 2012 6:15 AM by 880601 RSS

Problem in saving image on Mac 10.6.8 onward OS using applet.

880601 Newbie
Currently Being Moderated
I have created an applet and signed it with authenticated certificate. But it’s when i am trying to save a resized image on or above MAC 10.6.8 i an getting and exception

javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1692)
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
javax.media.jai.JAI.createNS(JAI.java:1103)
javax.media.jai.JAI.create(JAI.java:977)
javax.media.jai.JAI.create(JAI.java:1672)
ftpUpload.imagedirtesting.saveFile(imagedirtesting.java:1467)
ftpUpload.imagedirtesting.run(imagedirtesting.java:602)
java.lang.Thread.run(Thread.java:722)

this only come on mac for windows it works fine. the line of code where it fails is

JAI.create("encode", resizedImage, outputStream, "JPEG", null);
i have installed java 1.7 on mac but still gets the same error. I think it’s some security issue with mac. Any reply would be highly appreciated.

Thanks,
Rohit Kapoor

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points