public void saveZipFile(MimeMultipart inputZipFile){
  try {
    MimeBodyPart bdp=(MimeBodyPart)inputZipFile.getBodyPart(0);
    DataHandler dh=bdp.getDataHandler();
    File part=new File(getEntryPath());
    FileOutputStream fos=new FileOutputStream(part);
    dh.writeTo(fos);
    fos.close();
    System.gc();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

public void saveZipFile ( MimeMultipart inputZipFile ) { try { MimeBodyPart bdp = ( MimeBodyPart ) inputZipFile . getBodyPart ( 0 ) ; DataHandler dh = bdp . getDataHandler ( ) ; File part = new File ( getEntryPath ( ) ) ; FileOutputStream fos = new FileOutputStream ( part ) ; dh . writeTo ( fos ) ; fos . close ( ) ; System . gc ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
saves the zip file inside the entries directory
