Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handling a zip file from a url

 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Had a quick question...

I have a zip file to download...given the url http://xyz/abc.zip

How do I handle this feature...meaning...how can I download the file as a zip file from the given url? is there any available zip-contenthandler where I can say: urlConn.getContent() and this content is a zip file...

Thanks
Preetham
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on Advanced Java.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just use an <a> tag?
 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no...but I am trying to look if there is a java based content handler...which based on the content-type...will get the zip file...I have to do this from within a j2ee container...but can used a java based content handler if any available...so thats the reason I posted this in Advanced java forum...

Thanks
Preetham
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic