bytearrayinputstream

How do I take a ByteArrayInputStream and have its contents saved as a file on the filesystem

I have an image which is in the form of a ByteArrayInputStream. I want to take this and make it something that I can save to a location in my filesystem. I've been going around in circles, could you please help me out. ...

Help! unexpected java.lang.ArrayIndexOutOfBoundsException when using ByteArrayInputStream

Hi, I get a java.lang.ArrayIndexOutOfBoundsException when using ByteArrayInputStream. First, I use a ZipInputStream to read through a zip file, and while looping through the zipEntries, I use a ByteArrayInputStream to capture the data of each zipEntry using the ZipInputStream.read(byte[] b) and ByteArrayInputStream(byte[] b) method...