byte[] b = new byte[1024];
int len;
if(in!=null){
while((len=in.read(b,1024))>0)
response.getOutputStream().write(b,0,len);
in.close();
}else{out.println("没有图片");}
int len;
if(in!=null){
while((len=in.read(b,1024))>0)
response.getOutputStream().write(b,0,len);
in.close();
}else{out.println("没有图片");}
解决方案 »
- 在j2ee中工作流在还经常开发吗
- iReport高手速来,给俺看看!!!
- 有关spring的
- 菜鸟问题,EJB事物处理!!!
- 新人请教下哪位师兄有struts基础点的电子书籍啊?谢谢帮下忙顺便问下struts到底是怎么学才最好呢?
- WebShpere
- 用jxl.jar出现内存溢出问题,如何解决?
- 我的SQL SERVER数据库中有时间字段create_date(数值为2003-3-4这种形式),在JSP中如何根据这个字段值筛选出某一周内的记录
- Applet与数据库与Servlet的问题,分数不够可以再加
- springmvc中加入bootstrap后出错,求解救!
- 谁知道如何解决这个问题? NO Serializer found for class java:com.sune365.platform.note.Note
- 同样的连接,为什么在applet的输出就不行了呢?大家请进...没分了,不好意思
还是不对啊!
在in.read(b)时就==-1了!急死了!不知道为什么!
in 是有值的