if (out.size() > MAX_SIZE)
{
_log.log(Level.INFO, "File size is larger then " + MAX_SIZE);
out.close();
contentStream.close();
throw new DigitalObjectTooLargeException("File size is larger then " + MAX_SIZE);
}
out.write(buf, 0, len);
}
// _log.log(Level.INFO, "##### buf length: " + len + ", out.len: " + out.size());
byte[] byteContent = out.toByteArray();