Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FTPClient ftpClient;
- ZipOutputStream zipOut = null;
- zipOut = new ZipOutputStream(ftpClient.storeFileStream("a.zip"));
- String str;
- byte []conarr=str.getBytes();
- zipOut.putNextEntry(new ZipEntry("1.txt"));
- zipOut.write(conarr);
- zipOut.close();
Add Comment
Please, Sign In to add comment