Commit 088a880a authored by resec's avatar resec Committed by Yifei Feng
Browse files

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
parent df849b77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment