Skip to content
Advertisement

Tag: arrays

Determine the size of an InputStream

My current situation is: I have to read a file and put the contents into InputStream. Afterwards I need to place the contents of the InputStream into a byte array which requires (as far as I know) the size of the InputStream. Any ideas? As requested, I will show the input stream that I am creating from an uploaded file

Advertisement