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++;
}

相关文章:

  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-19
  • 2021-05-12
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案