Performance wise is it good to convert inputstream to byte array - java
<p>Actually in my code i'm going to convert inputstream of some large files (sometimes it'll be 30MB also) into byte array object. I'll reuse this byte array object for some time then i'll destroy it. </p>

<p>Converting inputstream to byte array will create any performance problem for system ? If so please suggest me how to solve it.</p>

<p><strong>Edits:</strong></p>

<p>In my application i want content of file in memory for particular use. if have it as inputstream then i have to hold connection of the file for some times. This will create shortage of connections to read file. So i thought to convert inputstream as byte array. Now i'm having doubt that holding this byte array of the large files in memory will create problem or not ? </p>

<p>I just want to know whether it'll create memory hogging in my application?</p>
