import net.lingala.zip4j.model.ZipParameters;
import net.lingala.zip4j.util.Zip4jConstants;
...
ZipFile zipFile1 = new ZipFile(tempZipFile);
ZipParameters zp1 = new ZipParameters();
zp1.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);
zp1.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);
zp1.setSourceExternalStream(true);// 이걸 해줘야 setFileNameInZip 이게 먹는다.
for(...){
zp1.setFileNameInZip((String)fileVO.ATCH_FILE_NM);
zipFile1.addFile(file1, zp1);
}
...
댓글 없음:
댓글 쓰기