Safely read content from InputStream (#12643)
* Safely read content from InputStream Changed to use `ByteArrayOutputStream` on converting `InputStream` into `byte[]`, instead of relying on `InputStream. available()`. * Bigger initial buffer size to avoid some copying * construct byte[] in individual's preference * fix io exception not caught
Loading
Please sign in to comment