wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes handling a zip file from a url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "handling a zip file from a url" Watch "handling a zip file from a url" New topic
Author

handling a zip file from a url

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
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


"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Why not just use an <a> tag?
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: handling a zip file from a url
 
Similar Threads
download an attachment with httpunit webresponse
Maven Eclipse plugin installation
Downloading Multiple Files
Problem with chinese fileNames in a Zipfile
File download - file name doesnot appear