title: concatenate two zipped byte arrays
body: <p>Hello I am having a map reduce job which merges different byte arrays together based on some grouping algorithm. </p>
  
  <p>I tried zipping each array individually using Java Deflater but when I try to extract the resultant zipped byte array, it is only the first sub array that I extracted.</p>
  
  <p>Is it it possible byte arrays once zipped to be just concatenated and then extracted or this is not the case ?</p>
  
  <p>What I want is:</p>
  
  <pre><code>byte array1[] - zip
  byte array2[] - zip
  byte array3[] = append(array1,array2).
  unzip resulting array3.
  </code></pre>
  
  <p>When I unzip it I receive only array 1.</p>