This content has been marked as final. Show 1 reply
this is the codes i use for uncompression.
Inflater inflater = new Inflater();
int size = inflater.getTotalOut();
byte decompressedByte= new byte[size];
System.arraycopy(compressedByte, 0, decompressedByte, 0, size);
ByteArrayInputStream bains = new ByteArrayInputStream(cardByteUC)
Object object = new java.io.ObjectInputStream(bains).readObject();
however i can't get any data out. keep geting java.io.StreamCorruptedException. another problem i see is that even after decompress the data my size of my byte is still the same which shouldn't be the case.
can someone kindly guide me?