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.
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Fix Version/s||3.x [ 12312838 ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||2.1 [ 12316027 ]|
|Workflow||jira [ 12522124 ]||Default workflow, editable Closed status [ 12601888 ]|