Inflater decompressor = new Inflater();
byte[] compressed = strip( bytes );
decompressor.setInput( compressed ); // feed the Inflater the bytes
byte[] buffer = new byte[ 56 ];
int count = decompressor.inflate( buffer ); // decompress the data into the buffer
decompressor.end();
//create an array to hold the header and body bytes
byte[] swf = new byte[ 8 + count ];
//copy the first 8 bytes which are uncompressed into the swf array
System.arraycopy( bytes, 0, swf, 0, 8 );