如何将InputStream转换成Image,并返回给Applet?
从blob中读出InputStream,要转换成Image格式,并返回给Applet,我现在的做法是
Image image = ImageIO.read(is)转换,
然后在servlet中
ObjectOutputStream os = new ObjectOutputStream(response.getOutputStream());
os.writeObject(image);
os.close();
在os.writeObject(image);处报错java.io.NotSerializableException
我该怎么序列化呢?