怎么将一个file读入一个字节数组byte[]? 怎么将一个file读入一个字节数组byte[]? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 FileINputStream in = new FileInputStream(file) ;BufferedInputStream bufferIn = new BufferedInputStream(in);byte b[] = new byte[90];while(n=(bufferIn.read(b))!=-1){ String str = new String(b,0,n); System.out.println(str);} !!!!紧急求救jsp 高手 高分求助 Array的用法 jmf中怎么样设置输出视频大小 刚学j2se,有个问题请大家帮忙 请问这道题错在哪里? 送分 这个是个一般是什么错误啊? 请问这样在技术上是否可行?(我自己写一个程序来监听我的系统上的端口,有些端口已经被别的应用使用,我能够使用什么方法再去监听这个端 大虾请进!急急急! 请教:BMP图片的缩放 关于三层架构中sql语句的问题!
BufferedInputStream bufferIn = new BufferedInputStream(in);
byte b[] = new byte[90];
while(n=(bufferIn.read(b))!=-1)
{
String str = new String(b,0,n);
System.out.println(str);
}