将读取流中的数据存到字节数组中servlet中如何将request.getInputStream()输入流中的数据存到一个字节数组中,用了
InputStream in = request.getInputStream();byte[] b = new byte[in.available()];in.read(b);
int len = request.getContentLength(); byte buffer[] = new byte[len];