Description
I suggest adding a new method toByteArray(InputStream input, int size) to IoUtils to handle known size InputStream (e.g. files).
Current implementation based on copy method consumes more memory than necessary (at least the double) to transform a InputStream into a byte array.
Attachments
Attachments
Issue Links
- relates to
-
IO-453 Regression in FileUtils.readFileToString from 2.0.1
- Closed
- links to