throw new NoOutputStreamException();
}
if (null == in) {
// No file, for instance non-existent filename in html upload
throw new NoInputStreamException();
}
final byte buffer[] = new byte[MAX_UPLOAD_BUFFER_SIZE];
int bytesReadToBuffer = 0;
while ((bytesReadToBuffer = in.read(buffer)) > 0) {