public static int ZipFiles(File[] srcfile, String zipFile) {
		try {
			// Create the ZIP file
			OutputStream os = new FileOutputStream(zipFile);
			BufferedOutputStream bs = new BufferedOutputStream(os);
			ZipOutputStream out = new ZipOutputStream(bs);
			// Compress the files
			for (int i = 0; i < srcfile.length; i++) {
				zip(srcfile[i], new File(zipFile), out, true, true);
			}
			out.closeEntry();
			// Complete the ZIP file
			out.close();
			// System.out.println("压缩完成.");
			return 1;
		} catch (IOException e) {
			e.printStackTrace();
			return -1;
		}
	}