Guest User

Untitled

a guest
Jan 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. FTPClient ftpClient;
  2.  
  3. ZipOutputStream zipOut = null;
  4. zipOut = new ZipOutputStream(ftpClient.storeFileStream("a.zip"));
  5.  
  6. String str;
  7. byte []conarr=str.getBytes();
  8.  
  9. zipOut.putNextEntry(new ZipEntry("1.txt"));
  10. zipOut.write(conarr);
  11. zipOut.close();
Add Comment
Please, Sign In to add comment