摘要:
try{OutputStreamo=response.getOutputStream();//将图片转换成字符串Filef=newFile("f:\\Vista.png");FileInputStreamfis=newFileInputStream(f);byte[]bytes=newbyte[fis.available()];fis.read(bytes);fis.close();//生成字符串StringimgStr=byte2hex(bytes);System.out.println(imgStr);//将字符串转换成二进制,用于显示图片//将上面生成的图片格式字符串 阅读全文
posted @ 2012-05-18 10:42
pengyingh
阅读(463)
评论(0)
推荐(0)