Hi,
I am using the code from these examples to compress/decompress a byte array:
http://www.java2s.com/Tutorial/Java/0180__File/CompressaByteArray.htm
http://www.java2s.com/Tutorial/Java/0180__File/DecompressaByteArray.htm
Compressing works fine, but I am getting a java.lang.OutOfMemoryError exception when trying to decompress the data.
The compressed data is 7kb, uncompressed is around 35kb. Surely even with the default amount of memory this should be fine? if I can compress the data shouldn’t I be able to decompress it again?
Here’s the quick class I wrote (pretty much same as the examples)
http://www.java-gaming.org/?action=pastebin&id=173
Thanks,
roland