从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
我该怎么序列化呢?
Image image = ImageIO.read(is)转换,
然后在servlet中
ObjectOutputStream os = new ObjectOutputStream(response.getOutputStream());
os.writeObject(image);
os.close();
在os.writeObject(image);处报错java.io.NotSerializableException
我该怎么序列化呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货