반응형 압축파일1 자바로 파일 압축하는 기능 만들기 압축으로 다운을 받는 기능을 만들려면 먼저 압축으로 만들어야 겠죠? public void FileZip( )throws Exception { FileSub filesub = new FileSub(); byte[] buf = new byte[1024]; /**알집 하나만**/ String attachments = 알집경로지정/ + 알집 이름 + ".zip"; try( ZipOutputStream out = new ZipOutputStream(new FileOutputStream(attachments));) { if(f.getFS_FILE_SIZE() != null) { String FilePath = 알집에 넣을 파일 경로와 이름확장자 까지; try( FileInputStream in = new FileI.. 2020. 12. 3. 이전 1 다음