}
// Store the data.
RenderedImage im = (RenderedImage)paramBlock.getSource(0);
try {
encoder.encode(im);
stream.flush();
// Fix 4665208: EncodeRIF closed the stream after flush
// User may put more into the stream
//stream.close();
} catch (IOException e) {