A
Ahmed Moustafa
I'm trying to use
<code>
byte[] array = {1, 2};
ByteArrayInputStream bis = new ByteArrayInputStream(array);
ObjectInputStream ois = new ObjectInputStream(bis);
</code>
But it throws exception at the 3rd line:
java.io.StreamCorruptedException: invalid stream header
Your help is appreciated!
<code>
byte[] array = {1, 2};
ByteArrayInputStream bis = new ByteArrayInputStream(array);
ObjectInputStream ois = new ObjectInputStream(bis);
</code>
But it throws exception at the 3rd line:
java.io.StreamCorruptedException: invalid stream header
Your help is appreciated!