Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download a Zip file  RSS feed

 
James Eman
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok so my last post got me nowhere so i'm creating a new one. my question is how do you download a zip file and save it i dont know how and dont know where to start.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly the same way as you would download any other file. You read it from the InputStream which you get from your connection one byte at a time and you write each of those bytes to a file in whatever location you decided to save it in.

Do you have a specific problem? Because what I posted is the general idea. You don't say what you tried already or what went wrong with you tried it, so I would really recommend that would be where you should start.
 
James Eman
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't even know how to download in java i have tough myself everything i know about java so don't know where to start teaching myself and wasn't sure if zip files and other files had to be different
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!