zip文件转byte数组,byte数组转储zip文件

@Test
	public void test4(){ 
 
  
		try { 
 
  
			byte[] bytes = FileUtils.getBytes(new File("F:/testFile/root.zip"));
			File zipFile=new File("F:/testFile/1.zip");
			ByteArrayOutputStream byteOSZip = new ByteArrayOutputStream(4096);
			byteOSZip.write(bytes);
			FileOutputStream fos2 = new FileOutputStream(zipFile);
			byteOSZip.writeTo(fos2);
			fos2.close();
		} catch (IOException e) { 
 
  
			e.printStackTrace();
		}
	}