62,623
社区成员
发帖
与我相关
我的任务
分享
//byte[] buf = new byte[2048]; 这个时候可以插入.txt文件,但插入不进去图片不知道为什么
byte[] buf = new byte[204800]; //这个时候去可以插入图片,原因不知道为啥
int len = 0;
if((len = bis.read(buf,0,buf.length)) != -1) { //如果为bis.read()没有参数的话,.txt,.jpg等都插入不进去,不知道为什么
os.write(buf, 0, len);
os.flush();
}