说明下,10月1日前可以上传图片,但是现在,图片上传时死在这个循环里面了,这是为什么呢?
String contentType = request.getContentType();
java.io.DataInputStream dis = new java.io.DataInputStream(request.getInputStream());
//read the content by byte
int formDataLength = request.getContentLength(); //可以取到长度
byte[] dataBytes = new byte[formDataLength]; //file cache
int byteRead = 0; 
int totalBytesRead = 0;

while(totalBytesRead < formDataLength){
为什么到这里dis里面的东西好像空,取的的实际字节数为-1
     byteRead = dis.read(dataBytes,totalBytesRead,formDataLength);
     totalBytesRead += byteRead; 
//死循环了,为什么??
}