question: public static byte [ ] readInputStream ( InputStream i ) throws IOException { ByteArrayOutputStream b = new ByteArrayOutputStream ( ) ; copy ( i , b ) ; return b . toByteArray ( ) ; }
target:  Converts a small input stream to a byte array