Progressiv JPEGs with Java?

hi everybody,

i've just written an application to load and process images and then upload them into a database on my webserver. beyond that, i've written an applet, to load these images and show them to the user. my problem is that the user has to wait for every single image he wants to see until it is completly loaded. the images are all 1024x768 and bigger, so it takes a while to load them.

my idea is, to speed things up, to upload progressiv compressed JPEGs into my database. when the applet loads an image, it should handle that in the background, so the user can work while the loading-process.

i've searched about the right parameters for com.sun.image.codec.jpeg.JPEGEncodeParam, because at the moment my programms use the com.sun.image.codec.jpeg.JPEGImageEncoder for encoding the image with baseline-compression and com.sun.image.codec.jpeg.JPEGImageDecoder for decoding it. but i didn't find anything. i've also read about ImageIO, but this framework seems to be only for writing and loading images from the local harddrive.

another problem, i see, is that the decoder of that images has to accept unfinished imagedata to produce the preview of that images. seems he has to deliver the decoding result in a VolatileImage or something like that.

has anybody of you ever worked with progressiv JPEGs on java? how did you encode them and, most of all, how did you decode them, gaining the advantage of progressiv compressed JPEGs?

thank you for any help here

wayne

[1530 byte] By [Wayne0103a] at [2007-11-15]