文件流

int index = -1;
while ((index = inputStream.read(bytes))!=-1&&uploading){
    out.write(bytes,0,index);//用这个
//out.write(bytes);//不要用这个
}

Leave a Reply

Your email address will not be published. Required fields are marked *