求帮助,io流,request.getInputStream获取不到。
阿飞技术 2015-12-02 04:25:01 InputStream in = request.getInputStream();
DataInputStream in1 = new DataInputStream(in);
int len = request.getContentLength();
byte[] byt = new byte[len];
in1.readFully(byt);
in1.close();
in.close();
String obj = new String(byt);
System.out.println(obj);
一直读不到数据,如果关闭流就报错。 但是 len是有值的。求亲们指点迷津。我弄了一天了。最好能加我。