/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jxfdl.utils;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.GZIPInputStream;
import sun.misc.BASE64Decoder;

/**
 *
 * @author unamanic
 */
public class Base64GZip {

  public static InputStream B64GzipToInputStream(InputStream is) {
    ByteArrayInputStream decoded = null;
    try {
      BASE64Decoder b64 = new BASE64Decoder();
      decoded = new ByteArrayInputStream(b64.decodeBuffer(is));
      GZIPInputStream gzip = new GZIPInputStream(decoded);
      return gzip;
    } catch (IOException ex) {
      Logger.getLogger(Base64GZip.class.getName()).log(Level.SEVERE, null, ex);
    }
    return null;
  }
  
  
}

@@ -119,45 +119,8 @@
 s;%0A%0A
-import java.io.ByteArrayInputStream;%0A
 impo
@@ -285,30 +285,57 @@
 ort 
-sun.misc.BASE64Decoder
+org.apache.commons.codec.binary.Base64InputStream
 ;%0A%0A/
@@ -462,49 +462,8 @@
 ) %7B%0A
-    ByteArrayInputStream decoded = null;%0A
     
@@ -474,16 +474,18 @@
 %7B%0A      
+//
 BASE64De
@@ -523,16 +523,18 @@
 ;%0A      
+//
 decoded 
@@ -589,20 +589,85 @@
 ;%0A      
-GZIP
+%0A      InputStream decoded = new Base64InputStream(is);%0A      %0A      
 InputStr

Use Apache Commons Base64 library instead of sun.misc.BASE64