File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes ImageIO error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "ImageIO error" Watch "ImageIO error" New topic

ImageIO error

Martin Thorpe
Ranch Hand

Joined: May 25, 2004
Posts: 45
Hello I have written an application and used a code example to write a buffered image to an image to a byteArrayOutput stream.

The error that I get is a sun.misc.serviceConfigurationError.javax.imageit.spiImageOutputStream.

Really I don't understand this error!?!? what is this telling me is the main question.

Everything works fine when I run it as an application but when I run it as an applet I get this error:

sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageOutputStreamSpi: Illegal configuration-file syntax

at Source)

at Source)

at sun.misc.Service.parseLine(Unknown Source)

at sun.misc.Service.parse(Unknown Source)

at sun.misc.Service.access$100(Unknown Source)

at sun.misc.Service$LazyIterator.hasNext(Unknown Source)

at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source)

at javax.imageio.spi.IIORegistry.<init>(Unknown Source)

at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)

at javax.imageio.ImageIO.<clinit>(Unknown Source)

at src.AppFTP.write(

The code is as below:

Thanks for taking the time to read, not too sure if this should go here or in applets.

The question really is can ImageIO be used in an applet or is there another type of I/O stream that I could use that would be functional.

[ March 16, 2005: Message edited by: Martin Thorpe ]
I agree. Here's the link:
subject: ImageIO error
It's not a secret anymore!