ServletInputStream servletInputStream = reqeust.getInputStream();
int len=0;
int size=reqeust.getContentLength();
byte[] read =new byte[size];
byte[] inb =new byte[size];
int readLea=0;
while(len<size){
readLea=servletInputStream.read(read);
for(int i=0;i<readLea;i++){
inb[len+i]=read[i];
}
len++;
}
时间: 2024-10-24 03:16:37