ZipException « bit « Java Data Type Q&A





1. ZipException : Invalid bit length repeat    forums.oracle.com

Hi All, Im getting ZipException : Invalid bit length repeat while decompressing the data using InflaterInputStream. InflaterInputStream is wrapped in InputStreamReader class. Im getting exception when reading the data from stream using read() method of InputStreamReader class. Here is my Code, /****************/ ByteArrayInputStream byArr = new ByteArrayInputStream(CompressedString.getBytes()); InputStreamReader in = null; ByteArrayOutputStream byos = new ByteArrayOutputStream(); byte b[] = new byte[CompressedString.getBytes().length ...